mirror of
https://github.com/libretro/RetroArch
synced 2025-01-27 21:35:25 +00:00
Get rid of fragile escaping shenanigans.
This commit is contained in:
parent
60901771ea
commit
c18d75f39d
@ -79,7 +79,7 @@ endif
|
||||
|
||||
GIT_VERSION := $(shell git rev-parse --short HEAD 2>/dev/null)
|
||||
ifneq ($(GIT_VERSION),)
|
||||
DEFINES += -DHAVE_GIT_VERSION -DGIT_VERSION="\"$(GIT_VERSION)\""
|
||||
DEFINES += -DHAVE_GIT_VERSION -DGIT_VERSION=$(GIT_VERSION)
|
||||
OBJ += git_version.o
|
||||
endif
|
||||
|
||||
|
@ -14,5 +14,7 @@
|
||||
*/
|
||||
|
||||
#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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user