Skip to content

Commit d3a15c6

Browse files
committed
do not use GCC_VERSION
1 parent af746a9 commit d3a15c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/imgproc/src/drawing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ static inline uint32_t opencvBigToHost32(const uchar* p){
11071107
uint32_t x;
11081108
memcpy(&x,p,4);
11091109
return x;
1110-
#elif OPENCV_BYTEORDER==1234 && defined(__GNUC__) && GCC_VERSION>=4003000
1110+
#elif OPENCV_BYTEORDER==1234 && defined(__GNUC__)
11111111
uint32_t x;
11121112
memcpy(&x,p,4);
11131113
return __builtin_bswap32(x);
@@ -1133,7 +1133,7 @@ static inline uint32_t opencvLittleToHost32(const uchar* p){
11331133
uint32_t x;
11341134
memcpy(&x,p,4);
11351135
return x;
1136-
#elif OPENCV_BYTEORDER==4321 && defined(__GNUC__) && GCC_VERSION>=4003000
1136+
#elif OPENCV_BYTEORDER==4321 && defined(__GNUC__)
11371137
uint32_t x;
11381138
memcpy(&x,p,4);
11391139
return __builtin_bswap32(x);

0 commit comments

Comments
 (0)