#ifdef __MINGW32__
static inline
#ifdef __MINGW32__
static inline
-void flockfile (FILE * filehandle) {
+void flockfile (FILE * filehandle __attribute__((unused))) {
-void funlockfile(FILE * filehandle) {
+void funlockfile(FILE * filehandle __attribute__((unused))) {
* Copyright (C) 2017 Jérémie Galarneau
*/
* 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
/* '## __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
+ and requires the caller to add the final comma if they've omitted
the optional arguments */
#ifdef __GNUC__
# define ok(e, test, ...) ((e) ? \
the optional arguments */
#ifdef __GNUC__
# define ok(e, test, ...) ((e) ? \
void todo_end(void);
int exit_status(void);
void todo_end(void);
int exit_status(void);
+
+#ifdef __cplusplus
+}
+#endif