Skip to content

Commit 20e236b

Browse files
committed
UI: FLTK and SDL version numbers now included in SBVER
1 parent 781c74c commit 20e236b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ function buildSDL() {
235235
CXXFLAGS="${CXXFLAGS} -fno-rtti -std=c++14"
236236

237237
dnl preconfigured values for SDL build
238+
AC_DEFINE_UNQUOTED([_SDL_VERSION], ["`sdl2-config --version` "], [SDL library version])
238239
AC_DEFINE(_SDL, 1, [Defined when building SDL version])
239240
AC_DEFINE(_UnixOS, 1, [Building under Unix like systems.])
240241
AC_DEFINE(IMPL_DEV_READ, 1, [Implement dev_read()])
@@ -416,6 +417,7 @@ function buildFLTK() {
416417
defaultConditionals
417418

418419
dnl preconfigured values for FLTK build
420+
AC_DEFINE_UNQUOTED([_FLTK_VERSION], ["`fltk-config --version` "], [FLTK library version])
419421
AC_DEFINE(_UnixOS, 1, [Building under Unix like systems.])
420422
AC_DEFINE(_FLTK, 1, [Defined for FLTK build.])
421423
AC_DEFINE(IMPL_DEV_READ, 1, [Implement dev_read()])

src/common/sys.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ extern "C" {
7272

7373
// SB's constants
7474
#if defined(_SDL)
75-
#define SB_STR_VER VERSION " SDL " SB_VERSYS SB_BIT_SZ BUILD_DATE
75+
#define SB_STR_VER VERSION " SDL " _SDL_VERSION SB_VERSYS SB_BIT_SZ BUILD_DATE
7676
#elif defined (_ANDROID)
7777
#define SB_STR_VER VERSION " Android " BUILD_DATE
7878
#elif defined (_FLTK)
79-
#define SB_STR_VER VERSION " FLTK " BUILD_DATE
79+
#define SB_STR_VER VERSION " FLTK " _FLTK_VERSION SB_VERSYS SB_BIT_SZ BUILD_DATE
8080
#elif defined (_EMCC)
8181
#define SB_STR_VER VERSION " Emscripten " BUILD_DATE
8282
#else

0 commit comments

Comments
 (0)