- Added the C99 printf size specifiers 't' (ptrdiff_t) and 'z' (size_t) to
FString::Format() so that I can fix all the problem printf strings that a 64-bit GCC compile finds. SVN r968 (trunk)
This commit is contained in:
parent
99f55e8b8f
commit
a0d5463b49
22 changed files with 85 additions and 42 deletions
|
|
@ -5,6 +5,15 @@ CXX ?= g++
|
|||
CC ?= gcc
|
||||
NASM ?= nasm
|
||||
CCDV = @./ccdv
|
||||
|
||||
ifndef X64
|
||||
ifeq (x86_64,$(shell uname -m))
|
||||
X64=64
|
||||
else
|
||||
X64=
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef DEBUG
|
||||
CFLAGS ?= -pipe -Wall -Wno-unused -fno-strict-aliasing
|
||||
else
|
||||
|
|
@ -17,7 +26,7 @@ endif
|
|||
#endif
|
||||
CFLAGS += -MMD -DHAVE_FILELENGTH -D__forceinline=inline `sdl-config --cflags` `pkg-config gtk+-2.0 --cflags`
|
||||
CFLAGS += -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNEED_STRUPR
|
||||
LDFLAGS += -lz -ljpeg `sdl-config --libs` `pkg-config gtk+-2.0 --libs` $(FMOD_PREFIX)/lib/libfmodex.so
|
||||
LDFLAGS += -lz -ljpeg `sdl-config --libs` `pkg-config gtk+-2.0 --libs` $(FMOD_PREFIX)/lib/libfmodex${X64}.so
|
||||
NASMFLAGS += -f elf -DM_TARGET_LINUX
|
||||
|
||||
SRCDIRS = src/ $(addprefix src/,g_doom/ g_heretic/ g_hexen/ g_raven/ g_shared/ g_strife/ oplsynth/ sound/ sdl/ textures/ thingdef/ xlat/ timidity/)
|
||||
|
|
@ -31,6 +40,9 @@ DEBUGOBJ ?= debugobj
|
|||
|
||||
CPPSRCS = $(wildcard $(addsuffix *.cpp,$(SRCDIRS)))
|
||||
CSRCS = $(filter-out src/xlat/xlat_parser.c, $(wildcard $(addsuffix *.c,$(SRCDIRS))))
|
||||
ifdef X64
|
||||
NOASM=1
|
||||
endif
|
||||
ifdef NOASM
|
||||
CFLAGS += -DNOASM
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue