Skip to content

Commit b2253ef

Browse files
committed
Handle redefinition of GCC_VERSION
1 parent c95b4e8 commit b2253ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/argon2/src/core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@
4646
#define NOT_OPTIMIZED __attribute__((optnone))
4747
#endif
4848
#elif defined(__GNUC__)
49+
#ifndef GCC_VERSION
4950
#define GCC_VERSION \
5051
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
52+
#endif
5153
#if GCC_VERSION >= 40400
5254
#define NOT_OPTIMIZED __attribute__((optimize("O0")))
5355
#endif

0 commit comments

Comments
 (0)