From a41ed986bdd97dfa0d60b361b1eb8de1516519f0 Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 4 May 2021 11:20:47 +0200 Subject: [PATCH] Expose RAYLIB_VERSION in raylib.h #1747 --- src/config.h | 2 -- src/core.c | 2 -- src/raylib.h | 2 ++ 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/config.h b/src/config.h index 99cb1d48b..54fadb239 100644 --- a/src/config.h +++ b/src/config.h @@ -25,8 +25,6 @@ * **********************************************************************************************/ -#define RAYLIB_VERSION "3.7" - //------------------------------------------------------------------------------------ // Module: core - Configuration Flags //------------------------------------------------------------------------------------ diff --git a/src/core.c b/src/core.c index a6a8505c0..e0987928c 100644 --- a/src/core.c +++ b/src/core.c @@ -116,8 +116,6 @@ // Check if config flags have been externally provided on compilation line #if !defined(EXTERNAL_CONFIG_FLAGS) #include "config.h" // Defines module configuration flags -#else - #define RAYLIB_VERSION "3.7" #endif #include "utils.h" // Required for: TRACELOG macros diff --git a/src/raylib.h b/src/raylib.h index 1e4ad7d09..bb67c1265 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -81,6 +81,8 @@ #include // Required for: va_list - Only used by TraceLogCallback +#define RAYLIB_VERSION "3.7.0" + #if defined(_WIN32) // Microsoft attibutes to tell compiler that symbols are imported/exported from a .dll #if defined(BUILD_LIBTYPE_SHARED)