Skip to content

Commit 1b45391

Browse files
committed
changed minimum GCC version
1 parent c712195 commit 1b45391

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tommath.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,17 @@
1919

2020
#include "tommath_class.h"
2121

22+
23+
#ifdef __GNUC__
24+
#define LTM_GNU_VERSION (__GNUC__ * 10000 \
25+
+ __GNUC_MINOR__ * 100 \
26+
+ __GNUC_PATCHLEVEL__)
27+
#endif
28+
2229
/* __attribute__((visibility ("hidden"))) is in GCC since 3.3.x but the exact patchlevel
2330
is unknown to the author */
2431
/* TODO: __attribute__((visibility ("hidden"))) is also supported by the Intel compiler */
25-
#if ((defined __GNUC__) && (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 4))
32+
#if (LTM_GNU_VERSION >= 40800)
2633
/* Workaround for x32 relocation problems */
2734
# if ((defined __x86_64__ ) && (defined __ILP32__))
2835
# define LTM_VISIBILITY_HIDDEN __attribute__((visibility ("hidden")))

0 commit comments

Comments
 (0)