From fc15b5c9f94d72281d223e3f77c417c49797d633 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 29 Dec 2017 13:26:11 +0200 Subject: [PATCH] Remove hardcoded version from libretro.c, use version from the Makefile --- Makefile | 1 + libretro/Makefile | 2 ++ libretro/libretro.c | 2 -- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8746015..23338dd 100755 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ MAKECMDGOALS := $(DEFAULT) endif VERSION := 0.9 +export VERSION CONF ?= debug BIN := build/bin diff --git a/libretro/Makefile b/libretro/Makefile index 9761843..bde47c1 100644 --- a/libretro/Makefile +++ b/libretro/Makefile @@ -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),) diff --git a/libretro/libretro.c b/libretro/libretro.c index 7320a7a..fefb316 100644 --- a/libretro/libretro.c +++ b/libretro/libretro.c @@ -14,8 +14,6 @@ #define snprintf _snprintf #endif -#define SAMEBOY_CORE_VERSION "0.9" - #include #include "libretro.h"