aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.in
diff options
context:
space:
mode:
authorDan Nicolaescu <[email protected]>2010-10-03 08:39:21 -0700
committerDan Nicolaescu <[email protected]>2010-10-03 08:39:21 -0700
commit4777478a50f6de9634d2d5b81ad2bac191d569b6 (patch)
tree697546b453ef2da09dbf221df77ef4b0ab5aa11e /src/config.in
parenta3d5088daa2e78d9dc2d7eddc4ac9c56cfe11caa (diff)
* configure.in (NO_INLINE, noinline): Move here from src/xterm.c.
* src/xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
Diffstat (limited to 'src/config.in')
-rw-r--r--src/config.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/config.in b/src/config.in
index d5eaada59b..a09ebeabce 100644
--- a/src/config.in
+++ b/src/config.in
@@ -1206,6 +1206,17 @@ typedef unsigned size_t;
#define NO_RETURN /* nothing */
#endif
+#if __GNUC__ >= 3 /* On GCC 3.0 we might get a warning. */
+#define NO_INLINE __attribute__((noinline))
+#else
+#define NO_INLINE
+#endif
+
+/* Some versions of GNU/Linux define noinline in their headers. */
+#ifdef noinline
+#undef noinline
+#endif
+
/* These won't be used automatically yet. We also need to know, at least,
that the stack is continuous. */
#ifdef __GNUC__