* Copyright (C) 2017 Jérémie Galarneau
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* '## __VA_ARGS__' is a gcc'ism. C99 doesn't allow the token pasting
and requires the caller to add the final comma if they've ommitted
the optional arguments */
skip(n, fmt, ## __VA_ARGS__); \
continue; \
}
-#elif __STDC_VERSION__ >= 199901L /* __GNUC__ */
+#elif (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) /* __GNUC__ */
# define ok(e, ...) ((e) ? \
_gen_result(1, __func__, __FILE__, __LINE__, \
__VA_ARGS__) : \
void todo_end(void);
int exit_status(void);
+
+#ifdef __cplusplus
+}
+#endif