aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/common.h b/common.h
index 8863661..958c7b0 100644
--- a/common.h
+++ b/common.h
@@ -53,6 +53,16 @@
# endif
#endif
+#ifndef __GNUC__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wunused-macros"
+#endif
+#ifdef WARN_UNKNOWN_ENDIAN
+# define WARN_UNKNOWN_ENDIAN__
+#endif
+#ifndef __GNUC__
+# pragma GCC diagnostic pop
+#endif
#define LITTLE_ENDIAN__ 1234
#define BIG_ENDIAN__ 4321
@@ -69,7 +79,7 @@
# endif
#else
# ifdef __GNUC__
-# ifdef WARN_UNKNOWN_ENDIAN
+# ifdef WARN_UNKNOWN_ENDIAN__
# warning The host endian is unknown
# endif
# endif