• R/O
  • SSH

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG), Euroboros (EB), and Down Under Doomers (DUD).


Commit MetaInfo

修订版dd287b2ffc2d0823fe91b40d8e0f47a3592b9fdf (tree)
时间2008-02-10 10:21:45
作者Randy Heit <rheit@zdoo...>
CommiterRandy Heit

Log Message

- Modified FLAC/share/alloc.h to define SIZE_T_MAX if it isn't defined

  1. For some reason, a stock install of MinGW doesn't define it, but
    if you compile your own GCC, it installs headers that do.

- Changed the way that the makefiles detect MSYS to a method that should

be more foolproof, thanks to changes in MSYS.

SVN r737 (trunk)

更改概述

差异

diff -r 4354ba057bba -r dd287b2ffc2d FLAC/Makefile.mgw
--- a/FLAC/Makefile.mgw Sat Feb 09 03:55:41 2008 +0000
+++ b/FLAC/Makefile.mgw Sun Feb 10 01:21:45 2008 +0000
@@ -11,7 +11,7 @@
1111 WIN=1
1212 WINCMD=1
1313 endif
14-ifeq (msys,$(OSTYPE))
14+ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
1515 WIN=1
1616 WINCMD=0
1717 endif
diff -r 4354ba057bba -r dd287b2ffc2d FLAC/share/alloc.h
--- a/FLAC/share/alloc.h Sat Feb 09 03:55:41 2008 +0000
+++ b/FLAC/share/alloc.h Sun Feb 10 01:21:45 2008 +0000
@@ -33,14 +33,16 @@
3333 #endif
3434 #include <stdlib.h> /* for size_t, malloc(), etc */
3535
36+#ifndef SIZE_T_MAX
37+# ifdef _WIN64
38+# define SIZE_T_MAX ULLONG_MAX
39+# elif defined(_WIN32)
40+# define SIZE_T_MAX UINT_MAX /* Why doesn't the standard MinGW distribution define this? */
41+# else
42+# error
43+# endif
44+#endif
3645 #ifndef SIZE_MAX
37-# ifndef SIZE_T_MAX
38-# ifdef _MSC_VER
39-# define SIZE_T_MAX UINT_MAX
40-# else
41-# error
42-# endif
43-# endif
4446 # define SIZE_MAX SIZE_T_MAX
4547 #endif
4648
diff -r 4354ba057bba -r dd287b2ffc2d Makefile
--- a/Makefile Sat Feb 09 03:55:41 2008 +0000
+++ b/Makefile Sun Feb 10 01:21:45 2008 +0000
@@ -1,7 +1,7 @@
11 ifeq (Windows_NT,$(OS))
22 WIN=1
33 endif
4-ifeq (msys,$(OSTYPE))
4+ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
55 WIN=1
66 endif
77
diff -r 4354ba057bba -r dd287b2ffc2d Makefile.mgw
--- a/Makefile.mgw Sat Feb 09 03:55:41 2008 +0000
+++ b/Makefile.mgw Sun Feb 10 01:21:45 2008 +0000
@@ -45,7 +45,7 @@
4545 @$(MAKE) -C zlib -f Makefile.mgw clean
4646 @$(MAKE) -C flac -f Makefile.mgw clean
4747 @$(MAKE) -C jpeg-6b -f Makefile.mgw clean
48-ifeq (msys,$(OSTYPE))
48+ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
4949 rm -f ccdv.exe
5050 else
5151 del /q /f ccdv.exe 2>nul
diff -r 4354ba057bba -r dd287b2ffc2d Makefile.mingw
--- a/Makefile.mingw Sat Feb 09 03:55:41 2008 +0000
+++ b/Makefile.mingw Sun Feb 10 01:21:45 2008 +0000
@@ -1,10 +1,13 @@
1+# This makefile makes zdoom(d).exe only.
2+# Makefile.mgw builds this plus everything else.
3+
14 # Sub-makefile autogenerated by premake
25 # And then tweaked by hand
36
47 # Where did you install the FMOD API to? Change this line so that the build process can find it.
58 FMODDIR = "c:/program files/fmodapi375win"
69
7-ifeq (msys,$(OSTYPE))
10+ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
811 WINCMD=0
912 else
1013 WINCMD=1
diff -r 4354ba057bba -r dd287b2ffc2d docs/rh-log.txt
--- a/docs/rh-log.txt Sat Feb 09 03:55:41 2008 +0000
+++ b/docs/rh-log.txt Sun Feb 10 01:21:45 2008 +0000
@@ -1,12 +1,23 @@
1+February 9, 2008
2+- Modified FLAC/share/alloc.h to define SIZE_T_MAX if it isn't defined
3+ already. For some reason, a stock install of MinGW doesn't define it, but
4+ if you compile your own GCC, it installs headers that do.
5+- After thoroughly messing up my MinGW/MSYS installation, I deleted the whole
6+ thing and reinstalled everything using the latest zips. Much to my surprise,
7+ the MSYS-detection in the makefiles no longer worked because OSTYPE wasn't
8+ being exported to process launched by the MSYS shell. I've now switched to a
9+ different method I found through the power of Google that asks the shell
10+ what version it is to see if the version string contains "msys".
11+
112 February 8, 2008
213 - Applied Blzut3's sbarinfo update #11:
314 * SBarInfo will also accept a '|' between flags for those who are really
415 bothered by the indefinite "arguments" in the middle of the statement.
5- * Added: completeBorder. When set to true SBarInfo will draw the border where
16+ * Added: completeBorder. When set to true SBarInfo will draw the border where
617 the status bar normally goes.
718 * Fixed: I forgot to accept TK_None on "base" and "statusbar".
819 * Fixed: "base" was apparently broken when the SBarInfo init code was moved to
9- d_main.cpp. Also, if "base Strife" was used then it would not use the
20+ d_main.cpp. Also, if "base Strife" was used then it would not use the
1021 default log message of "find help".
1122 - Fixed: D_ReadUserInfoString() parsed the final element of a compact string
1223 as the empty string. Since that was the player class, this meant that any
diff -r 4354ba057bba -r dd287b2ffc2d jpeg-6b/Makefile.mgw
--- a/jpeg-6b/Makefile.mgw Sat Feb 09 03:55:41 2008 +0000
+++ b/jpeg-6b/Makefile.mgw Sun Feb 10 01:21:45 2008 +0000
@@ -33,7 +33,7 @@
3333 .PHONY: clean
3434
3535 clean:
36-ifeq (msys,$(OSTYPE))
36+ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
3737 rm -f $(STATICLIB)
3838 rm -f *.o
3939 else
diff -r 4354ba057bba -r dd287b2ffc2d tools/dehsupp/Makefile
--- a/tools/dehsupp/Makefile Sat Feb 09 03:55:41 2008 +0000
+++ b/tools/dehsupp/Makefile Sun Feb 10 01:21:45 2008 +0000
@@ -1,11 +1,11 @@
1-ifeq (Windows_NT,$(OS))
2- WIN=1
3- WINCMD=1
4-endif
5-ifeq (msys,$(OSTYPE))
6- WIN=1
7- WINCMD=0
8-endif
1+ifeq (Windows_NT,$(OS))
2+ WIN=1
3+ WINCMD=1
4+endif
5+ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
6+ WIN=1
7+ WINCMD=0
8+endif
99
1010 ifeq (1,$(WIN))
1111 EXE = dehsupp.exe
diff -r 4354ba057bba -r dd287b2ffc2d tools/fixrtext/Makefile
--- a/tools/fixrtext/Makefile Sat Feb 09 03:55:41 2008 +0000
+++ b/tools/fixrtext/Makefile Sun Feb 10 01:21:45 2008 +0000
@@ -2,7 +2,7 @@
22 WIN=1
33 WINCMD=1
44 endif
5-ifeq (msys,$(OSTYPE))
5+ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
66 WIN=1
77 WINCMD=0
88 endif
diff -r 4354ba057bba -r dd287b2ffc2d tools/lemon/Makefile
--- a/tools/lemon/Makefile Sat Feb 09 03:55:41 2008 +0000
+++ b/tools/lemon/Makefile Sun Feb 10 01:21:45 2008 +0000
@@ -1,11 +1,11 @@
1-ifeq (Windows_NT,$(OS))
2- WIN=1
3- WINCMD=1
4-endif
5-ifeq (msys,$(OSTYPE))
6- WIN=1
7- WINCMD=0
8-endif
1+ifeq (Windows_NT,$(OS))
2+ WIN=1
3+ WINCMD=1
4+endif
5+ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
6+ WIN=1
7+ WINCMD=0
8+endif
99
1010 ifeq (1,$(WIN))
1111 EXE = lemon.exe
diff -r 4354ba057bba -r dd287b2ffc2d tools/makewad/Makefile
--- a/tools/makewad/Makefile Sat Feb 09 03:55:41 2008 +0000
+++ b/tools/makewad/Makefile Sun Feb 10 01:21:45 2008 +0000
@@ -1,11 +1,11 @@
1-ifeq (Windows_NT,$(OS))
2- WIN=1
3- WINCMD=1
4-endif
5-ifeq (msys,$(OSTYPE))
6- WIN=1
7- WINCMD=0
8-endif
1+ifeq (Windows_NT,$(OS))
2+ WIN=1
3+ WINCMD=1
4+endif
5+ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
6+ WIN=1
7+ WINCMD=0
8+endif
99
1010 ifeq (1,$(WIN))
1111 EXE = makewad.exe
diff -r 4354ba057bba -r dd287b2ffc2d tools/makewad/makewad.c
--- a/tools/makewad/makewad.c Sat Feb 09 03:55:41 2008 +0000
+++ b/tools/makewad/makewad.c Sun Feb 10 01:21:45 2008 +0000
@@ -323,7 +323,7 @@
323323 {
324324 fprintf (wadfile, " \\\n\t\"%s\"", filename);
325325 }
326- // ARGH! Stupid make. Too bad but then these files can't be checked.
326+ // ARGH! Stupid make. Too bad, but then these files can't be checked.
327327 // Still better than something that doesn't work at all though!
328328 else if (!strpbrk(filename, "[]^"))
329329 {
diff -r 4354ba057bba -r dd287b2ffc2d tools/re2c/Makefile
--- a/tools/re2c/Makefile Sat Feb 09 03:55:41 2008 +0000
+++ b/tools/re2c/Makefile Sun Feb 10 01:21:45 2008 +0000
@@ -2,7 +2,7 @@
22 WIN=1
33 WINCMD=1
44 endif
5-ifeq (msys,$(OSTYPE))
5+ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
66 WIN=1
77 WINCMD=0
88 endif
diff -r 4354ba057bba -r dd287b2ffc2d tools/updaterevision/Makefile
--- a/tools/updaterevision/Makefile Sat Feb 09 03:55:41 2008 +0000
+++ b/tools/updaterevision/Makefile Sun Feb 10 01:21:45 2008 +0000
@@ -2,7 +2,7 @@
22 WIN=1
33 WINCMD=1
44 endif
5-ifeq (msys,$(OSTYPE))
5+ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
66 WIN=1
77 WINCMD=0
88 endif
@@ -27,8 +27,8 @@
2727 $(EXE): $(OBJS)
2828 $(CCDV) $(CC) -o $(EXE) $(OBJS) $(CFLAGS) $(LDFLAGS)
2929
30-%.o : %.rc
31- $(CCDV) windres -o $@ -i $<
30+%.o : %.rc
31+ $(CCDV) windres -o $@ -i $<
3232
3333 .PHONY: clean
3434
diff -r 4354ba057bba -r dd287b2ffc2d tools/updaterevision/trustinfo.rc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/updaterevision/trustinfo.rc Sun Feb 10 01:21:45 2008 +0000
@@ -0,0 +1,6 @@
1+// This resource script is for compiling with MinGW only. Visual C++
2+// compilations use the manifest tool to insert the manifest instead.
3+
4+#include <WinUser.h>
5+
6+1 RT_MANIFEST "trustinfo.txt"
diff -r 4354ba057bba -r dd287b2ffc2d tools/xlatcc/Makefile
--- a/tools/xlatcc/Makefile Sat Feb 09 03:55:41 2008 +0000
+++ b/tools/xlatcc/Makefile Sun Feb 10 01:21:45 2008 +0000
@@ -2,7 +2,7 @@
22 WIN=1
33 WINCMD=1
44 endif
5-ifeq (msys,$(OSTYPE))
5+ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
66 WIN=1
77 WINCMD=0
88 endif
diff -r 4354ba057bba -r dd287b2ffc2d wadsrc/Makefile.mgw
--- a/wadsrc/Makefile.mgw Sat Feb 09 03:55:41 2008 +0000
+++ b/wadsrc/Makefile.mgw Sun Feb 10 01:21:45 2008 +0000
@@ -1,26 +1,29 @@
1-MAKEWAD=../tools/makewad/makewad
2-XLATCC=../tools/xlatcc/xlatcc
3-DEHSUPP=../tools/dehsupp/dehsupp
4-
5-ifneq ($(MAKECMDGOALS),clean)
6-include Makefile2
7-endif
8-
9-wadmake: zdoom.lst $(MAKEWAD).exe $(XLATCC).exe $(DEHSUPP).exe
10- $(MAKEWAD) -make wadmake zdoom.lst
11-
12-clean:
13-ifeq (msys,$(OSTYPE))
14- rm -f wadmake zdoom.pk3 xlat/*.x dehsupp.lmp
15-else
16- del /q /f wadmake zdoom.pk3 xlat\*.x dehsupp.lmp 2>nul
17-endif
18-
19-../tools/makewad/makewad.exe:
20- $(MAKE) -C ../tools/makewad -f Makefile
21-
22-../tools/xlatcc/xlatcc.exe:
23- $(MAKE) -C ../tools/xlatcc -f Makefile
24-
25-../tools/dehsupp/dehsupp.exe:
26- $(MAKE) -C ../tools/dehsupp -f Makefile
1+MAKEWAD=../tools/makewad/makewad
2+XLATCC=../tools/xlatcc/xlatcc
3+DEHSUPP=../tools/dehsupp/dehsupp
4+
5+ifneq ($(MAKECMDGOALS),clean)
6+include Makefile2
7+endif
8+ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
9+export OSTYPE=msys
10+endif
11+
12+wadmake: zdoom.lst $(MAKEWAD).exe $(XLATCC).exe $(DEHSUPP).exe
13+ $(MAKEWAD) -make wadmake zdoom.lst
14+
15+clean:
16+ifeq ($(OSTYPE),msys)
17+ rm -f wadmake zdoom.pk3 xlat/*.x dehsupp.lmp
18+else
19+ del /q /f wadmake zdoom.pk3 xlat\*.x dehsupp.lmp 2>nul
20+endif
21+
22+../tools/makewad/makewad.exe:
23+ $(MAKE) -C ../tools/makewad -f Makefile
24+
25+../tools/xlatcc/xlatcc.exe:
26+ $(MAKE) -C ../tools/xlatcc -f Makefile
27+
28+../tools/dehsupp/dehsupp.exe:
29+ $(MAKE) -C ../tools/dehsupp -f Makefile
diff -r 4354ba057bba -r dd287b2ffc2d zlib/Makefile.mgw
--- a/zlib/Makefile.mgw Sat Feb 09 03:55:41 2008 +0000
+++ b/zlib/Makefile.mgw Sun Feb 10 01:21:45 2008 +0000
@@ -63,7 +63,7 @@
6363 .PHONY: clean
6464
6565 clean:
66-ifeq (msys,$(OSTYPE))
66+ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
6767 rm -f $(STATICLIB)
6868 rm -f *.o
6969 rm -f *.exe