|
|
|
@ -29,6 +29,10 @@ |
|
|
|
|
|
|
|
|
|
#include "internal.h" |
|
|
|
|
|
|
|
|
|
// These construct a string literal from individual numeric constants
|
|
|
|
|
#define _GLFW_CONCAT_VERSION(m, n, r) #m "." #n "." #r |
|
|
|
|
#define _GLFW_MAKE_VERSION(m, n, r) _GLFW_CONCAT_VERSION(m, n, r) |
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
////// GLFW internal API //////
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
@ -146,7 +150,9 @@ GLFWAPI int glfwPlatformSupported(int platformID) |
|
|
|
|
|
|
|
|
|
GLFWAPI const char* glfwGetVersionString(void) |
|
|
|
|
{ |
|
|
|
|
return _GLFW_VERSION_NUMBER |
|
|
|
|
return _GLFW_MAKE_VERSION(GLFW_VERSION_MAJOR, |
|
|
|
|
GLFW_VERSION_MINOR, |
|
|
|
|
GLFW_VERSION_REVISION) |
|
|
|
|
#if defined(_GLFW_WIN32) |
|
|
|
|
" Win32 WGL" |
|
|
|
|
#endif |
|
|
|
|