Skip to content

Commit

Permalink
Fix a compilation error when compiling with khrplatform.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
mackron committed Apr 15, 2021
1 parent ef5b2fb commit f2ff284
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/glbind_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ extern "C" {
The official OpenGL headers have a dependency on a header called khrplatform.h. From what I can see it's mainly just for sized types. Since glbind is a
single header, and that we can't just copy-and-paste the contents of khrplatform.h due to licensing, we need to do our own sized type declarations.
*/
#ifndef __khrplatform_h_
#include <stddef.h> /* For size_t. */
#ifdef _MSC_VER
#if defined(__clang__)
Expand Down Expand Up @@ -92,6 +93,7 @@ single header, and that we can't just copy-and-paste the contents of khrplatform
#endif
#endif
typedef float khronos_float_t;
#endif /* __khrplatform_h_ */

/* Platform headers. */
#if defined(GLBIND_WGL)
Expand Down

0 comments on commit f2ff284

Please sign in to comment.