aboutsummaryrefslogtreecommitdiffstats
path: root/serd/serd.h
diff options
context:
space:
mode:
Diffstat (limited to 'serd/serd.h')
-rw-r--r--serd/serd.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/serd/serd.h b/serd/serd.h
index b67ddd3d..06e0af43 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -21,13 +21,12 @@
#ifndef SERD_SERD_H
#define SERD_SERD_H
-#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#ifdef SERD_SHARED
-# ifdef __WIN32__
+# ifdef _WIN32
# define SERD_LIB_IMPORT __declspec(dllimport)
# define SERD_LIB_EXPORT __declspec(dllexport)
# else
@@ -45,6 +44,8 @@
#ifdef __cplusplus
extern "C" {
+#else
+# include <stdbool.h>
#endif
/**