summaryrefslogtreecommitdiff
path: root/include/epoxy/wgl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/epoxy/wgl.h')
-rw-r--r--include/epoxy/wgl.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/include/epoxy/wgl.h b/include/epoxy/wgl.h
index 250e419..fdd7b4f 100644
--- a/include/epoxy/wgl.h
+++ b/include/epoxy/wgl.h
@@ -30,21 +30,22 @@
#ifndef EPOXY_WGL_H
#define EPOXY_WGL_H
-#if defined(__wglxext_h_)
-#error "epoxy/wgl.h" must be included before (or in place of) "wglext.h"
-#endif
-
-#define __wglxext_h_
-
-#include "epoxy/gl.h"
-
#ifdef __cplusplus
extern "C" {
#endif
+#include <stdbool.h>
+#include <windows.h>
+
#undef wglUseFontBitmaps
#undef wglUseFontOutlines
+#if defined(__wglxext_h_)
+#error epoxy/wgl.h must be included before (or in place of) wgl.h
+#else
+#define __wglxext_h_
+#endif
+
#ifdef UNICODE
#define wglUseFontBitmaps wglUseFontBitmapsW
#else