aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sokol_glue.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sokol_glue.h b/sokol_glue.h
index 9c80568c..c4794c1b 100644
--- a/sokol_glue.h
+++ b/sokol_glue.h
@@ -100,6 +100,10 @@
#endif
#endif
+#ifndef SOKOL_GFX_INCLUDED
+#error "Please include sokol_gfx.h before sokol_glue.h"
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -117,10 +121,15 @@ SOKOL_GLUE_API_DECL sg_swapchain sglue_swapchain(void);
#define SOKOL_GLUE_IMPL_INCLUDED (1)
#include <string.h> /* memset */
+#ifndef SOKOL_APP_IMPL_INCLUDED
+#error "Please include the sokol_app.h implementation before the sokol_glue.h implementation"
+#endif
+
#ifndef SOKOL_API_IMPL
#define SOKOL_API_IMPL
#endif
+
SOKOL_API_IMPL sg_environment sglue_environment(void) {
sg_environment env;
memset(&env, 0, sizeof(env));