summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-07-04 21:54:01 +0000
committerTavian Barnes <tavianator@gmail.com>2009-07-04 21:54:01 +0000
commit20d6adfd5baf5b27d77ecfdfa6f0877c318a309a (patch)
tree2988917655683ae3548d38f17acbaef193f983a3
parent8085395acc28d8c77901615f8862ceeda5773b09 (diff)
downloaddimension-20d6adfd5baf5b27d77ecfdfa6f0877c318a309a.tar.xz
Use "__extension__ extern __inline__" for DMNSN_INLINE in GNU C.
-rw-r--r--libdimension/dimension.h2
-rw-r--r--libdimension/inlines.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/dimension.h b/libdimension/dimension.h
index 1745f97..4d67ce0 100644
--- a/libdimension/dimension.h
+++ b/libdimension/dimension.h
@@ -38,7 +38,7 @@
#define DMNSN_INLINE inline
#elif defined(__GNUC__)
/* GCC inline semantics */
- #define DMNSN_INLINE extern inline
+ #define DMNSN_INLINE __extension__ extern __inline__
#else
/* Unknown C - mark functions static and hope the compiler is smart enough
to inline them */
diff --git a/libdimension/inlines.c b/libdimension/inlines.c
index a03d08f..e7d4c74 100644
--- a/libdimension/inlines.c
+++ b/libdimension/inlines.c
@@ -26,7 +26,7 @@
#define DMNSN_INLINE
#elif defined(__GNUC__)
/* GCC inline semantics */
- #define DMNSN_INLINE inline
+ #define DMNSN_INLINE __inline__
#else
/* Unknown C - mark functions static and hope the compiler is smart enough
to inline them */