Skip to content

Commit

Permalink
c: mark loader function as static
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Apr 29, 2017
1 parent 2e24db1 commit 4014836
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions example/c++/hellowindow2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

// GLAD
#include <glad/glad.h>
#include <glad/glad_glx.h>

// confirm that GLAD didn't include windows.h
#ifdef _WINDOWS_
Expand Down
4 changes: 2 additions & 2 deletions glad/lang/c/loader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
static HMODULE libGL;
typedef void* (APIENTRYP PFNWGLGETPROCADDRESSPROC_PRIVATE)(const char*);
PFNWGLGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr;
static PFNWGLGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr;
%(pre)s
int %(init)s(void) {
Expand All @@ -34,7 +34,7 @@
#ifndef __APPLE__
typedef void* (APIENTRYP PFNGLXGETPROCADDRESSPROC_PRIVATE)(const char*);
PFNGLXGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr;
static PFNGLXGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr;
#endif
%(pre)s
Expand Down

0 comments on commit 4014836

Please sign in to comment.