Skip to content

Commit

Permalink
gladegl.cpp: turn into valid C++ code
Browse files Browse the repository at this point in the history
  • Loading branch information
puffnfresh committed Mar 20, 2023
1 parent 8aff0b0 commit 3b39e03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions glad/gladegl.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <cstddef>

#if !defined(__APPLE__) && !defined(__HAIKU__) \
&& !defined(_WIN32) && !defined(__CYGWIN__)

Expand Down Expand Up @@ -51,6 +53,7 @@ void* get_proc(const char *namez) {
return result;
}

extern "C"
int gladLoadEGL(void) {
int status = 0;
PFNEGLBINDAPIPROC bindAPI = NULL;
Expand All @@ -68,6 +71,7 @@ int gladLoadEGL(void) {

#else

extern "C"
int gladLoadEGL(void) {
return 0;
}
Expand Down

0 comments on commit 3b39e03

Please sign in to comment.