]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Working on getting gmqcc to work when compiled with tcc
authorDale Weiler <killfieldengine@gmail.com>
Fri, 28 Dec 2012 09:30:01 +0000 (09:30 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Fri, 28 Dec 2012 09:30:01 +0000 (09:30 +0000)
Makefile
gmqcc.h

index 473089ab9d4611ad1b65d94e8465ea5949695f16..7c9bedee91a3b5e532a26aa0485a560ec0c03f8f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ CYGWIN  = $(findstring CYGWIN,  $(UNAME))
 MINGW   = $(findstring MINGW32, $(UNAME))
 
 CC     ?= clang
-CFLAGS += -Wall -Wextra -I. -pedantic-errors -fno-strict-aliasing -fsigned-char
+CFLAGS += -Wall -Wextra -I. -fno-strict-aliasing -fsigned-char
 #turn on tons of warnings if clang is present
 # but also turn off the STUPID ONES
 ifeq ($(CC), clang)
@@ -22,7 +22,16 @@ ifeq ($(CC), clang)
                -Wno-missing-prototypes       \
                -Wno-float-equal              \
                -Wno-cast-align
+else
+       #Tiny C Compiler doesn't know what -pedantic-errors is
+       # and instead of ignoring .. just errors.
+       ifneq ($(CC), tcc)
+               CFLAGS +=-pedantic-errors
+       else
+               CFLAGS += -Wno-pointer-sign -fno-common
+       endif
 endif
+
 ifeq ($(track), no)
     CFLAGS += -DNOTRACK
 endif
diff --git a/gmqcc.h b/gmqcc.h
index 9dc184657ccbb2a810dd7185bb0710d65a68ebe9..8527f2e12cc0e489480c9d6fce1cde0b4bc81028 100644 (file)
--- a/gmqcc.h
+++ b/gmqcc.h
@@ -74,8 +74,6 @@
 #   endif /* !__STDC_VERSION__ */
 #endif    /* !__cplusplus      */
 
-
-
 /*
  * Of some functions which are generated we want to make sure
  * that the result isn't ignored. To find such function calls,