summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/eet/eet_image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/eet/eet_image.c b/src/lib/eet/eet_image.c
index bfaff2edb9..cd92ca01f8 100644
--- a/src/lib/eet/eet_image.c
+++ b/src/lib/eet/eet_image.c
@@ -332,9 +332,9 @@ eet_data_image_jpeg_alpha_convert(int *size,
#endif /* ifdef CONV64 */
#define CONV8(x)
-#define CONV16(x) {if (_eet_image_words_bigendian) {SWAP16(x); }}
-#define CONV32(x) {if (_eet_image_words_bigendian) {SWAP32(x); }}
-#define CONV64(x) {if (_eet_image_words_bigendian) {SWAP64(x); }}
+#define CONV16(x) do {if (_eet_image_words_bigendian) {SWAP16(x); }} while(0)
+#define CONV32(x) do {if (_eet_image_words_bigendian) {SWAP32(x); }} while(0)
+#define CONV64(x) do {if (_eet_image_words_bigendian) {SWAP64(x); }} while(0)
/*---*/