Remove hardcoded version from libretro.c, use version from the Makefile

This commit is contained in:
Lior Halphon 2017-12-29 13:26:11 +02:00
parent 0891de668b
commit fc15b5c9f9
3 changed files with 3 additions and 2 deletions

View File

@ -18,6 +18,7 @@ MAKECMDGOALS := $(DEFAULT)
endif endif
VERSION := 0.9 VERSION := 0.9
export VERSION
CONF ?= debug CONF ?= debug
BIN := build/bin BIN := build/bin

View File

@ -6,6 +6,8 @@ ifneq ($(GIT_VERSION)," unknown")
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\" CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif endif
CFLAGS += -DSAMEBOY_CORE_VERSION=\"$(VERSION)\"
ifeq ($(platform),) ifeq ($(platform),)
platform = unix platform = unix
ifeq ($(shell uname -a),) ifeq ($(shell uname -a),)

View File

@ -14,8 +14,6 @@
#define snprintf _snprintf #define snprintf _snprintf
#endif #endif
#define SAMEBOY_CORE_VERSION "0.9"
#include <Core/gb.h> #include <Core/gb.h>
#include "libretro.h" #include "libretro.h"