aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-09 19:50:59 +0100
committerDavid Robillard <d@drobilla.net>2021-01-09 22:43:20 +0100
commit7994ec8e1b53021ff43b9830db92f900e5df6a73 (patch)
treed94fd584202a8016b19791cdd31e5c7019170c78 /src/serdi.c
parent0b187ad97c52a2443b8c2b2bef7c4c9e66508a65 (diff)
downloadserd-7994ec8e1b53021ff43b9830db92f900e5df6a73.tar.gz
serd-7994ec8e1b53021ff43b9830db92f900e5df6a73.tar.bz2
serd-7994ec8e1b53021ff43b9830db92f900e5df6a73.zip
Only define WIN32_LEAN_AND_MEAN for MSVC
This avoids a warning with MinGW.
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 687e75b3..a5c3c0da 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -22,7 +22,9 @@
#include "serd/serd.h"
#ifdef _WIN32
-# define WIN32_LEAN_AND_MEAN 1
+# ifdef _MSC_VER
+# define WIN32_LEAN_AND_MEAN 1
+# endif
# include <fcntl.h>
# include <io.h>
#endif