diff options
-rw-r--r-- | examples/pugl_shader_demo.c | 2 | ||||
-rw-r--r-- | meson.build | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/examples/pugl_shader_demo.c b/examples/pugl_shader_demo.c index 17135de..5bef21e 100644 --- a/examples/pugl_shader_demo.c +++ b/examples/pugl_shader_demo.c @@ -21,6 +21,8 @@ about 100000 rectangles. */ +#define PUGL_NO_INCLUDE_GL_H + #include "demo_utils.h" #include "file_utils.h" #include "rects.h" diff --git a/meson.build b/meson.build index 0c43e1a..e82dec4 100644 --- a/meson.build +++ b/meson.build @@ -8,6 +8,7 @@ project( 'b_ndebug=if-release', 'buildtype=release', 'c_std=c99', + 'c_winlibs=', 'cpp_std=c++14', ], license: 'ISC', @@ -162,10 +163,11 @@ elif host_machine.system() == 'windows' user32_dep = cc.find_library('user32') shlwapi_dep = cc.find_library('shlwapi') dwmapi_dep = cc.find_library('dwmapi') + gdi32_dep = cc.find_library('gdi32') platform = 'win' platform_sources = files('src/win.c') - core_deps = [user32_dep, shlwapi_dep, dwmapi_dep] + core_deps = [user32_dep, shlwapi_dep, dwmapi_dep, gdi32_dep] extension = '.c' soversion = '' |