util: use _WIN32 instead of WIN32
authorDylan Baker <dylan@pnwbakers.com>
Thu, 19 Sep 2019 18:04:21 +0000 (11:04 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 10 Oct 2019 23:33:04 +0000 (16:33 -0700)
MinGW defines only _WIN32, but doesn't have fcntl, so we need to use the
windows path.

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Acked-by: Kristian H. Kristensen <hoegsberg@google.com>
src/util/anon_file.c

index e368004..bd415ad 100644 (file)
@@ -27,7 +27,7 @@
  * Based on weston shared/os-compatibility.c
  */
 
-#ifndef WIN32
+#ifndef _WIN32
 #include "anon_file.h"
 
 #include <unistd.h>