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
VERSION := 0.9
export VERSION
CONF ?= debug
BIN := build/bin

View File

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

View File

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