Skip to content

Commit

Permalink
Handle redefinition of GCC_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
utelle committed Dec 17, 2024
1 parent c95b4e8 commit b2253ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/argon2/src/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@
#define NOT_OPTIMIZED __attribute__((optnone))
#endif
#elif defined(__GNUC__)
#ifndef GCC_VERSION
#define GCC_VERSION \
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
#endif
#if GCC_VERSION >= 40400
#define NOT_OPTIMIZED __attribute__((optimize("O0")))
#endif
Expand Down

0 comments on commit b2253ef

Please sign in to comment.