summaryrefslogtreecommitdiffstats
path: root/ni845x_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'ni845x_spi.c')
-rw-r--r--ni845x_spi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ni845x_spi.c b/ni845x_spi.c
index d4ae294c1..6e7bb769c 100644
--- a/ni845x_spi.c
+++ b/ni845x_spi.c
@@ -15,6 +15,13 @@
*
*/
+/* The ni845x header does need the WIN32 symbol to be defined and meson does not do it.
+ * Define it just here, since this driver will only work on 32-bit Windows.
+ */
+#ifndef WIN32
+#define WIN32
+#endif
+
#include <ctype.h>
#include <inttypes.h>
#include <string.h>