From 492a9019af5b9c4708d0ed1590d50cff5b220305 Mon Sep 17 00:00:00 2001 From: Darshan Shaligram Date: Thu, 24 Sep 2009 18:50:41 -0700 Subject: Fix MinGW build. #include without WIN32_LEAN_AND_MEAN includes winsock.h, which defines AF_CHAOS as an int constant. (cherry picked from commit 290984b8da1725e4ece1d0eb64a965f0fefa29af) --- crawl-ref/source/initfile.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 4cc5d74b19..dacc2984cb 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -13,6 +13,7 @@ REVISION("$Rev$"); // For finding the executable's path #if defined ( WIN32CONSOLE ) || defined ( WIN32TILES ) +#define WIN32_LEAN_AND_MEAN #include #elif defined ( __linux__ ) #include -- cgit v1.2.3-54-g00ecf