From ef6dec17ba843f2ef64f1a8210f40f05053035f1 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 1 Jun 2015 19:15:55 +0200 Subject: [PATCH] Added missing entries to Linux version strings. --- src/mir_init.c | 5 +++++ src/wl_init.c | 7 ++++++- src/x11_init.c | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/mir_init.c b/src/mir_init.c index 7f19b60d..c2de5620 100644 --- a/src/mir_init.c +++ b/src/mir_init.c @@ -90,6 +90,11 @@ const char* _glfwPlatformGetVersionString(void) const char* version = _GLFW_VERSION_NUMBER " Mir EGL" #if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) " clock_gettime" +#else + " gettimeofday" +#endif +#if defined(__linux__) + " /dev/js" #endif #if defined(_GLFW_BUILD_DLL) " shared" diff --git a/src/wl_init.c b/src/wl_init.c index 72ce18eb..280608dd 100644 --- a/src/wl_init.c +++ b/src/wl_init.c @@ -620,9 +620,14 @@ void _glfwPlatformTerminate(void) const char* _glfwPlatformGetVersionString(void) { - const char* version = _GLFW_VERSION_NUMBER " Wayland EGL " + const char* version = _GLFW_VERSION_NUMBER " Wayland EGL" #if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) " clock_gettime" +#else + " gettimeofday" +#endif +#if defined(__linux__) + " /dev/js" #endif #if defined(_GLFW_BUILD_DLL) " shared" diff --git a/src/x11_init.c b/src/x11_init.c index 9c42864c..ea194c9b 100644 --- a/src/x11_init.c +++ b/src/x11_init.c @@ -796,6 +796,8 @@ const char* _glfwPlatformGetVersionString(void) #endif #if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) " clock_gettime" +#else + " gettimeofday" #endif #if defined(__linux__) " /dev/js"