summaryrefslogtreecommitdiff
path: root/upb/upb.h
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2015-05-18 11:37:03 -0700
committerJosh Haberman <jhaberman@gmail.com>2015-05-18 12:57:44 -0700
commit2cff15d35e4ff862e6a0811ae9e509c3d3352514 (patch)
tree3bc0d6ef00bf5a54011e72c38d544f47e908e83f /upb/upb.h
parente2840a4aa1b6a7a2ca1421d0d6da3e56992e5090 (diff)
Updates from code review comments.
Diffstat (limited to 'upb/upb.h')
-rw-r--r--upb/upb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/upb/upb.h b/upb/upb.h
index 13efaed..b62ac36 100644
--- a/upb/upb.h
+++ b/upb/upb.h
@@ -25,6 +25,12 @@
#define UPB_INLINE static inline
#endif
+// Define this manually if you're on big endian and your compiler doesn't
+// provide these preprocessor symbols.
+#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
+#define UPB_BIG_ENDIAN
+#endif
+
// For use in C/C++ source files (not headers), forces inlining within the file.
#ifdef __GNUC__
#define UPB_FORCEINLINE inline __attribute__((always_inline))
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback