Get rid of fragile escaping shenanigans.

This commit is contained in:
Alcaro 2014-10-23 19:20:33 +02:00
parent 60901771ea
commit c18d75f39d
2 changed files with 4 additions and 2 deletions

View File

@ -79,7 +79,7 @@ endif
GIT_VERSION := $(shell git rev-parse --short HEAD 2>/dev/null) GIT_VERSION := $(shell git rev-parse --short HEAD 2>/dev/null)
ifneq ($(GIT_VERSION),) ifneq ($(GIT_VERSION),)
DEFINES += -DHAVE_GIT_VERSION -DGIT_VERSION="\"$(GIT_VERSION)\"" DEFINES += -DHAVE_GIT_VERSION -DGIT_VERSION=$(GIT_VERSION)
OBJ += git_version.o OBJ += git_version.o
endif endif

View File

@ -14,5 +14,7 @@
*/ */
#include "git_version.h" #include "git_version.h"
const char rarch_git_version[] = GIT_VERSION; #define STR_(x) #x
#define STR(x) STR_(x)
const char rarch_git_version[] = STR(GIT_VERSION);