Simplified version string functions.

This commit is contained in:
Camilla Berglund 2015-06-01 20:50:10 +02:00
parent ef6dec17ba
commit b00a7d0619
5 changed files with 5 additions and 15 deletions

View File

@ -249,7 +249,7 @@ void _glfwPlatformTerminate(void)
const char* _glfwPlatformGetVersionString(void) const char* _glfwPlatformGetVersionString(void)
{ {
const char* version = _GLFW_VERSION_NUMBER " Cocoa" return _GLFW_VERSION_NUMBER " Cocoa"
#if defined(_GLFW_NSGL) #if defined(_GLFW_NSGL)
" NSGL" " NSGL"
#endif #endif
@ -266,7 +266,5 @@ const char* _glfwPlatformGetVersionString(void)
" dynamic" " dynamic"
#endif #endif
; ;
return version;
} }

View File

@ -87,7 +87,7 @@ void _glfwPlatformTerminate(void)
const char* _glfwPlatformGetVersionString(void) const char* _glfwPlatformGetVersionString(void)
{ {
const char* version = _GLFW_VERSION_NUMBER " Mir EGL" return _GLFW_VERSION_NUMBER " Mir EGL"
#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) #if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK)
" clock_gettime" " clock_gettime"
#else #else
@ -100,7 +100,5 @@ const char* _glfwPlatformGetVersionString(void)
" shared" " shared"
#endif #endif
; ;
return version;
} }

View File

@ -369,7 +369,7 @@ void _glfwPlatformTerminate(void)
const char* _glfwPlatformGetVersionString(void) const char* _glfwPlatformGetVersionString(void)
{ {
const char* version = _GLFW_VERSION_NUMBER " Win32" return _GLFW_VERSION_NUMBER " Win32"
#if defined(_GLFW_WGL) #if defined(_GLFW_WGL)
" WGL" " WGL"
#elif defined(_GLFW_EGL) #elif defined(_GLFW_EGL)
@ -384,7 +384,5 @@ const char* _glfwPlatformGetVersionString(void)
" DLL" " DLL"
#endif #endif
; ;
return version;
} }

View File

@ -620,7 +620,7 @@ void _glfwPlatformTerminate(void)
const char* _glfwPlatformGetVersionString(void) const char* _glfwPlatformGetVersionString(void)
{ {
const char* version = _GLFW_VERSION_NUMBER " Wayland EGL" return _GLFW_VERSION_NUMBER " Wayland EGL"
#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) #if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK)
" clock_gettime" " clock_gettime"
#else #else
@ -633,7 +633,5 @@ const char* _glfwPlatformGetVersionString(void)
" shared" " shared"
#endif #endif
; ;
return version;
} }

View File

@ -788,7 +788,7 @@ void _glfwPlatformTerminate(void)
const char* _glfwPlatformGetVersionString(void) const char* _glfwPlatformGetVersionString(void)
{ {
const char* version = _GLFW_VERSION_NUMBER " X11" return _GLFW_VERSION_NUMBER " X11"
#if defined(_GLFW_GLX) #if defined(_GLFW_GLX)
" GLX" " GLX"
#elif defined(_GLFW_EGL) #elif defined(_GLFW_EGL)
@ -806,7 +806,5 @@ const char* _glfwPlatformGetVersionString(void)
" shared" " shared"
#endif #endif
; ;
return version;
} }