summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoe Hao Cheng <haochengho12907@gmail.com>2023-02-25 14:03:55 +0800
committerHoe Hao Cheng <haochengho12907@gmail.com>2023-02-27 20:28:08 +0800
commit1d0f8fe47e02f0a1f616899e7740c564a351d9ea (patch)
treee3bac2e2019064a0df913b00adbc0fddd5616f81
parent000d0bf15e847ee0225d5b281297b196d3a035be (diff)
downloadmesa-demos-1d0f8fe47e02f0a1f616899e7740c564a351d9ea.tar.gz
demos: check for _WIN32 instead of WIN32
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
-rw-r--r--src/demos/fire.c4
-rw-r--r--src/demos/ray.c4
-rw-r--r--src/demos/teapot.c4
-rw-r--r--src/demos/terrain.c4
-rw-r--r--src/demos/tunnel.c4
-rw-r--r--src/demos/tunnel2.c4
6 files changed, 12 insertions, 12 deletions
diff --git a/src/demos/fire.c b/src/demos/fire.c
index b2dad65d..25b2fa29 100644
--- a/src/demos/fire.c
+++ b/src/demos/fire.c
@@ -13,7 +13,7 @@
#include <time.h>
#include <string.h>
-#ifdef WIN32
+#ifdef _WIN32
#include <windows.h>
#include <mmsystem.h>
#endif
@@ -340,7 +340,7 @@ printhelp(void)
static void
dojoy(void)
{
-#ifdef WIN32
+#ifdef _WIN32
static UINT max[2] = { 0, 0 };
static UINT min[2] = { 0xffffffff, 0xffffffff }, center[2];
MMRESULT res;
diff --git a/src/demos/ray.c b/src/demos/ray.c
index 10d80e62..8611b53b 100644
--- a/src/demos/ray.c
+++ b/src/demos/ray.c
@@ -11,7 +11,7 @@
#include <string.h>
#include <math.h>
-#ifdef WIN32
+#ifdef _WIN32
#include <windows.h>
#endif
@@ -560,7 +560,7 @@ drawobj(void)
static void
dojoy(void)
{
-#ifdef WIN32
+#ifdef _WIN32
static UINT max[2] = { 0, 0 };
static UINT min[2] = { 0xffffffff, 0xffffffff }, center[2];
MMRESULT res;
diff --git a/src/demos/teapot.c b/src/demos/teapot.c
index 23d2225b..e7bd8ac9 100644
--- a/src/demos/teapot.c
+++ b/src/demos/teapot.c
@@ -12,7 +12,7 @@
#include <time.h>
#include <string.h>
-#ifdef WIN32
+#ifdef _WIN32
#include <windows.h>
#endif
@@ -382,7 +382,7 @@ static void drawlight2(void)
static void dojoy(void)
{
-#ifdef WIN32
+#ifdef _WIN32
static UINT max[2]={0,0};
static UINT min[2]={0xffffffff,0xffffffff},center[2];
MMRESULT res;
diff --git a/src/demos/terrain.c b/src/demos/terrain.c
index 9e3629db..2362505e 100644
--- a/src/demos/terrain.c
+++ b/src/demos/terrain.c
@@ -15,7 +15,7 @@
#include <string.h>
#include <time.h>
-#ifdef WIN32
+#ifdef _WIN32
#include <windows.h>
#endif
@@ -317,7 +317,7 @@ drawterrain(void)
static void
dojoy(void)
{
-#ifdef WIN32
+#ifdef _WIN32
static UINT max[2] = { 0, 0 };
static UINT min[2] = { 0xffffffff, 0xffffffff }, center[2];
MMRESULT res;
diff --git a/src/demos/tunnel.c b/src/demos/tunnel.c
index dea689e0..91fe67e1 100644
--- a/src/demos/tunnel.c
+++ b/src/demos/tunnel.c
@@ -11,7 +11,7 @@
#include <math.h>
#include <string.h>
-#ifdef WIN32
+#ifdef _WIN32
#include <windows.h>
#endif
@@ -336,7 +336,7 @@ printhelp(void)
static void
dojoy(void)
{
-#ifdef WIN32
+#ifdef _WIN32
static UINT max[2] = { 0, 0 };
static UINT min[2] = { 0xffffffff, 0xffffffff }, center[2];
MMRESULT res;
diff --git a/src/demos/tunnel2.c b/src/demos/tunnel2.c
index 1126a385..0c7b1a64 100644
--- a/src/demos/tunnel2.c
+++ b/src/demos/tunnel2.c
@@ -14,7 +14,7 @@
#include <math.h>
#include <string.h>
-#ifdef WIN32
+#ifdef _WIN32
#include <windows.h>
#endif
@@ -362,7 +362,7 @@ printhelp(void)
static void
dojoy(void)
{
-#ifdef WIN32
+#ifdef _WIN32
static UINT max[2] = { 0, 0 };
static UINT min[2] = { 0xffffffff, 0xffffffff }, center[2];
MMRESULT res;