[Hide Content]From e89404a8ecd8f05b969b73d6b5fc191837d3c3f8 Mon Sep 17 00:00:00 2001
From: Hurcan Solter <hsolter@gmail.com>
Date: Sun, 12 Jun 2011 00:53:48 +0300
Subject: [PATCH] Fix Windows compilation
D_WIN32_WINNT must be defined to compile alarm() in syscall.cc for
windows.
---
crawl-ref/source/makefile | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile
index 4898cf9..3d82f7f 100644
--- a/crawl-ref/source/makefile
+++ b/crawl-ref/source/makefile
@@ -174,6 +174,8 @@ ifneq (,$(findstring MINGW,$(uname_S)))
BUILD_PCRE = YesPlease
BUILD_ZLIB = YesPlease
DEFINES_L += -DWINMM_PLAY_SOUNDS
+ #windows XP and above
+ DEFINES_L += -D_WIN32_WINNT=0x0501
EXTRA_LIBS += -lwinmm
ifdef TILES
EXTRA_LIBS += -lmingw32 -lgdi32 -lwinmm contrib/install/$(ARCH)/lib/libSDLmain.a -mwindows
--
1.7.5.GIT