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 7f4f604 commit 9974d83Copy full SHA for 9974d83
src/attributes.h
@@ -23,7 +23,12 @@
23
# define unlikely(params) (params)
24
25
#else // _MSC_VER
26
-# if zone_has_attribute(always_inline) || zone_has_gnuc(3, 1)
+# if (zone_has_attribute(always_inline) || zone_has_gnuc(3, 1)) && ! defined __NO_INLINE__
27
+ // Compilation using GCC 4.2.1 without optimizations fails.
28
+ // sorry, unimplemented: inlining failed in call to ...
29
+ // GCC 4.1.2 and GCC 4.30 compile forward declared functions annotated
30
+ // with __attribute__((always_inline)) without problems. Test if
31
+ // __NO_INLINE__ is defined and define macro accordingly.
32
# define really_inline inline __attribute__((always_inline))
33
# else
34
# define really_inline inline
0 commit comments