summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/AppHdr.h4
-rw-r--r--crawl-ref/source/luadgn.cc5
-rw-r--r--crawl-ref/source/makefile.dos2
-rw-r--r--crawl-ref/source/makefile.mgw2
-rw-r--r--crawl-ref/source/makefile_tiles.mgw2
5 files changed, 12 insertions, 3 deletions
diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h
index 4177673947..700bfc2c0c 100644
--- a/crawl-ref/source/AppHdr.h
+++ b/crawl-ref/source/AppHdr.h
@@ -180,6 +180,10 @@
#include <dos.h>
+ // Use Perl-compatible regular expressions. libpcre must be available and
+ // linked in. This is optional.
+ #define REGEX_PCRE
+
#elif defined(WIN32CONSOLE) || defined(WIN32TILES)
#if defined(WIN32CONSOLE)
#include "libw32c.h"
diff --git a/crawl-ref/source/luadgn.cc b/crawl-ref/source/luadgn.cc
index 2a0d2faac9..02e25d5b13 100644
--- a/crawl-ref/source/luadgn.cc
+++ b/crawl-ref/source/luadgn.cc
@@ -1788,10 +1788,11 @@ static int dgn_make_pillars(lua_State *ls)
return 0;
}
- const float PI = 3.14159265f;
+ // [enne] The underscore is for DJGPP's brain damage.
+ const float _PI = 3.14159265f;
for (int n = 0; n < num; n++)
{
- float angle = n * 2 * PI / (float)num;
+ float angle = n * 2 * _PI / (float)num;
int x = (int)std::floor(std::cos(angle) * big_radius * scale_x + 0.5f);
int y = (int)std::floor(std::sin(angle) * big_radius + 0.5f);
diff --git a/crawl-ref/source/makefile.dos b/crawl-ref/source/makefile.dos
index ea64341147..6733c95a90 100644
--- a/crawl-ref/source/makefile.dos
+++ b/crawl-ref/source/makefile.dos
@@ -30,7 +30,7 @@ SQLLIB := sql3
SQLLIBA := lib$(SQLLIB).a
FSQLLIBA := $(SQLSRC)\$(SQLLIBA)
-LIB = -L$(LUASRC) -l$(LUALIB) -L$(SQLSRC) -l$(SQLLIB)
+LIB = -L$(LUASRC) -l$(LUALIB) -L$(SQLSRC) -l$(SQLLIB) -lpcre
INCLUDES := -Iutil -I. -I$(LUASRC) -I$(SQLSRC)
WORKDIR := $(shell cd)
diff --git a/crawl-ref/source/makefile.mgw b/crawl-ref/source/makefile.mgw
index 9c306ae911..6a525c7e3a 100644
--- a/crawl-ref/source/makefile.mgw
+++ b/crawl-ref/source/makefile.mgw
@@ -140,6 +140,8 @@ endif
copy /y dat\database\*.txt $(INSTALLDIR)\dat\database
copy /y ..\settings\* $(INSTALLDIR)\settings
copy /y ..\docs\* $(INSTALLDIR)\docs
+ copy /y ..\* $(INSTALLDIR)
+ $(DELETE) $(INSTALLDIR)\*.sh
clean:
$(DELETE) $(OPATH)\*.o
diff --git a/crawl-ref/source/makefile_tiles.mgw b/crawl-ref/source/makefile_tiles.mgw
index 9a3abf1e5c..fed4392b7a 100644
--- a/crawl-ref/source/makefile_tiles.mgw
+++ b/crawl-ref/source/makefile_tiles.mgw
@@ -184,6 +184,8 @@ endif
copy /y ..\docs\* $(INSTALLDIR)\docs
mkdir $(INSTALLDIR)\dat\tiles 2>nul || echo "" > nul
copy /y dat\tiles\*.bmp $(INSTALLDIR)\dat\tiles
+ copy /y ..\* $(INSTALLDIR)
+ $(DELETE) $(INSTALLDIR)\*.sh
clean:
$(DELETE) $(OPATH)\*.o