diff options
author | David Robillard <d@drobilla.net> | 2023-10-16 19:06:32 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-10-16 19:06:32 -0400 |
commit | d66471c82401b386f21a4d182266f6e2df552bee (patch) | |
tree | 9c970e003810466a1eed2adde908318dbf76f6c2 | |
parent | 377979b723f0c1bae1ff239ea3d99c0422f7d4a9 (diff) | |
download | pugl-d66471c82401b386f21a4d182266f6e2df552bee.tar.gz pugl-d66471c82401b386f21a4d182266f6e2df552bee.tar.bz2 pugl-d66471c82401b386f21a4d182266f6e2df552bee.zip |
Fix GCC 13 build
-rw-r--r-- | examples/pugl_vulkan_cpp_demo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pugl_vulkan_cpp_demo.cpp b/examples/pugl_vulkan_cpp_demo.cpp index 764954d..d0cc5a1 100644 --- a/examples/pugl_vulkan_cpp_demo.cpp +++ b/examples/pugl_vulkan_cpp_demo.cpp @@ -706,8 +706,8 @@ readFile(const char* const programPath, const std::string& filename) std::cerr << "Loading shader: " << path.get() << std::endl; - const std::unique_ptr<FILE, decltype(&fclose)> file{fopen(path.get(), "rb"), - &fclose}; + const std::unique_ptr<FILE, int (*)(FILE*)> file{fopen(path.get(), "rb"), + &fclose}; if (!file) { std::cerr << "Failed to open file '" << filename << "'\n"; |