Use GLFWbool for TLS functions

master
Camilla Berglund ago%!(EXTRA string=10 years)
parent cdf08c1ff3
commit 25878d68e0
  1. 2
      src/posix_tls.c
  2. 2
      src/posix_tls.h
  3. 2
      src/win32_tls.c
  4. 2
      src/win32_tls.h

@ -32,7 +32,7 @@
////// GLFW internal API //////
//////////////////////////////////////////////////////////////////////////
int _glfwCreateContextTLS(void)
GLFWbool _glfwCreateContextTLS(void)
{
if (pthread_key_create(&_glfw.posix_tls.context, NULL) != 0)
{

@ -43,7 +43,7 @@ typedef struct _GLFWtlsPOSIX
} _GLFWtlsPOSIX;
int _glfwCreateContextTLS(void);
GLFWbool _glfwCreateContextTLS(void);
void _glfwDestroyContextTLS(void);
void _glfwSetContextTLS(_GLFWwindow* context);

@ -32,7 +32,7 @@
////// GLFW internal API //////
//////////////////////////////////////////////////////////////////////////
int _glfwCreateContextTLS(void)
GLFWbool _glfwCreateContextTLS(void)
{
_glfw.win32_tls.context = TlsAlloc();
if (_glfw.win32_tls.context == TLS_OUT_OF_INDEXES)

@ -41,7 +41,7 @@ typedef struct _GLFWtlsWin32
} _GLFWtlsWin32;
int _glfwCreateContextTLS(void);
GLFWbool _glfwCreateContextTLS(void);
void _glfwDestroyContextTLS(void);
void _glfwSetContextTLS(_GLFWwindow* context);

Loading…
Cancel
Save