s/true/false/, fix a typo: a function definition with () means no parameters, not...
[cparser] / config.h
index aae6e6b..e382f50 100644 (file)
--- a/config.h
+++ b/config.h
@@ -1 +1,13 @@
 #define INLINE inline
+
+#ifdef __GNUC__
+#define NORETURN __attribute__((noreturn))
+#elif defined _MSC_VER
+#define NORETURN __declspec(noreturn)
+#define __attribute__(x)
+#else
+#define NORETURN
+#ifndef __attribute__
+#define __attribute__(x)
+#endif
+#endif