summaryrefslogtreecommitdiff
path: root/upb.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-06-28 12:02:43 -0700
committerJoshua Haberman <joshua@reverberate.org>2009-06-28 12:02:43 -0700
commit1139650320e764b6ba3582174a13babaa88fb1a1 (patch)
treef448c2274699e61d0a97ecff2fd78475163cfc77 /upb.h
parent2da3b081c47fe8fe7476da228323d2040e876f56 (diff)
Use "static inline" instead of "extern inline" for now.
Diffstat (limited to 'upb.h')
-rw-r--r--upb.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/upb.h b/upb.h
index 5197395..2e62b5a 100644
--- a/upb.h
+++ b/upb.h
@@ -16,15 +16,8 @@
extern "C" {
#endif
-/* Portable inlining strategy: use C99 rules except on GCC.
- * see: http://www.greenend.org.uk/rjk/2003/03/inline.html. */
-#ifndef INLINE
-# if __GNUC__ && !__GNUC_STDC_INLINE__
-# define INLINE extern inline
-# else
-# define INLINE inline
-# endif
-#endif
+/* inline if possible, emit standalone code if required. */
+#define INLINE static inline
/* The maximum that any submessages can be nested. Matches proto2's limit. */
#define UPB_MAX_NESTING 64
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback