We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c712195 commit 1b45391Copy full SHA for 1b45391
tommath.h
@@ -19,10 +19,17 @@
19
20
#include "tommath_class.h"
21
22
+
23
+#ifdef __GNUC__
24
+#define LTM_GNU_VERSION (__GNUC__ * 10000 \
25
+ + __GNUC_MINOR__ * 100 \
26
+ + __GNUC_PATCHLEVEL__)
27
+#endif
28
29
/* __attribute__((visibility ("hidden"))) is in GCC since 3.3.x but the exact patchlevel
30
is unknown to the author */
31
/* TODO: __attribute__((visibility ("hidden"))) is also supported by the Intel compiler */
-#if ((defined __GNUC__) && (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 4))
32
+#if (LTM_GNU_VERSION >= 40800)
33
/* Workaround for x32 relocation problems */
34
# if ((defined __x86_64__ ) && (defined __ILP32__))
35
# define LTM_VISIBILITY_HIDDEN __attribute__((visibility ("hidden")))
0 commit comments