1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00

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* version = _GLFW_VERSION_NUMBER " Cocoa"
return _GLFW_VERSION_NUMBER " Cocoa"
#if defined(_GLFW_NSGL)
" NSGL"
#endif
@ -266,7 +266,5 @@ const char* _glfwPlatformGetVersionString(void)
" dynamic"
#endif
;
return version;
}

View File

@ -87,7 +87,7 @@ void _glfwPlatformTerminate(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)
" clock_gettime"
#else
@ -100,7 +100,5 @@ const char* _glfwPlatformGetVersionString(void)
" shared"
#endif
;
return version;
}

View File

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

View File

@ -620,7 +620,7 @@ void _glfwPlatformTerminate(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)
" clock_gettime"
#else
@ -633,7 +633,5 @@ const char* _glfwPlatformGetVersionString(void)
" shared"
#endif
;
return version;
}

View File

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