mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 12:00:38 +00:00
GMQCC_GITINFO
This commit is contained in:
parent
14e954284e
commit
e37adb8c47
2 changed files with 6 additions and 1 deletions
1
Makefile
1
Makefile
|
@ -10,6 +10,7 @@ MINGW = $(findstring MINGW32, $(UNAME))
|
||||||
|
|
||||||
CC ?= clang
|
CC ?= clang
|
||||||
CFLAGS += -Wall -Wextra -I. -fno-strict-aliasing -fsigned-char
|
CFLAGS += -Wall -Wextra -I. -fno-strict-aliasing -fsigned-char
|
||||||
|
CFLAGS += -DGMQCC_GITINFO="`git describe`"
|
||||||
#turn on tons of warnings if clang is present
|
#turn on tons of warnings if clang is present
|
||||||
# but also turn off the STUPID ONES
|
# but also turn off the STUPID ONES
|
||||||
ifeq ($(CC), clang)
|
ifeq ($(CC), clang)
|
||||||
|
|
6
gmqcc.h
6
gmqcc.h
|
@ -46,8 +46,12 @@
|
||||||
#define GMQCC_VERSION \
|
#define GMQCC_VERSION \
|
||||||
GMQCC_VERSION_BUILD(GMQCC_VERSION_MAJOR, GMQCC_VERSION_MINOR, GMQCC_VERSION_PATCH)
|
GMQCC_VERSION_BUILD(GMQCC_VERSION_MAJOR, GMQCC_VERSION_MINOR, GMQCC_VERSION_PATCH)
|
||||||
|
|
||||||
|
#ifndef GMQCC_GITINFO
|
||||||
|
# define GMQCC_GITINFO "(no git info)"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We cannoy rely on C99 at all, since compilers like MSVC
|
* We cannot rely on C99 at all, since compilers like MSVC
|
||||||
* simply don't support it. We define our own boolean type
|
* simply don't support it. We define our own boolean type
|
||||||
* as a result (since we cannot include <stdbool.h>). For
|
* as a result (since we cannot include <stdbool.h>). For
|
||||||
* compilers that are in 1999 mode (C99 compliant) we can use
|
* compilers that are in 1999 mode (C99 compliant) we can use
|
||||||
|
|
Loading…
Reference in a new issue