Eee image: fix macros to be surrounded with do while().

Macros should be surrounded with do {} while() statements,
otherwise there can be issues, like the macro not requiring a semicolon
after the statement or etc.

@fix
This commit is contained in:
Tom Hacohen 2015-01-14 08:54:58 +00:00
parent 323db06279
commit 565f2af60f
1 changed files with 3 additions and 3 deletions

View File

@ -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)
/*---*/