summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uisimulator/win32/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/uisimulator/win32/Makefile b/uisimulator/win32/Makefile
index 614c172620..d152ea7933 100644
--- a/uisimulator/win32/Makefile
+++ b/uisimulator/win32/Makefile
@@ -67,8 +67,8 @@ CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) -W -Wall -mno-cygwin
APPCFLAGS = $(DEBUG) $(DEFINES) $(APPINCLUDES) -W -Wall -mno-cygwin
-UNAME := $(shell uname)
-ifeq ($(UNAME),CYGWIN_NT-5.1)
+UNAME := $(shell uname|sed -e "s/CYGWIN.*/CYGWIN/")
+ifeq ($(UNAME),CYGWIN)
CC = gcc
WINDRES = windres
DEFINES += -DNOCYGWIN