diff options
author | HampusM <hampus@hampusmat.com> | 2024-05-19 13:12:59 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-05-19 13:12:59 +0200 |
commit | 355a19e630de61397bf70b69b7ab2356318be2b8 (patch) | |
tree | 71774709c0407375850c54fe59feb542e05fdb51 /glfw/glfw.h | |
parent | 3884f9bdd775afd3a40503286eb5d06ef72eeb1a (diff) |
fix(glfw): check major version of GLFW shared library
Diffstat (limited to 'glfw/glfw.h')
-rw-r--r-- | glfw/glfw.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glfw/glfw.h b/glfw/glfw.h index f5fa479..7b435c0 100644 --- a/glfw/glfw.h +++ b/glfw/glfw.h @@ -1,2 +1,6 @@ #include <GLFW/glfw3.h> +#if GLFW_VERSION_MAJOR != 3 +#error "Unsupported major version of GLFW. Must be 3" +#endif + |