aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-10-16 19:06:32 -0400
committerDavid Robillard <d@drobilla.net>2023-10-16 19:06:32 -0400
commitd66471c82401b386f21a4d182266f6e2df552bee (patch)
tree9c970e003810466a1eed2adde908318dbf76f6c2
parent377979b723f0c1bae1ff239ea3d99c0422f7d4a9 (diff)
downloadpugl-d66471c82401b386f21a4d182266f6e2df552bee.tar.gz
pugl-d66471c82401b386f21a4d182266f6e2df552bee.tar.bz2
pugl-d66471c82401b386f21a4d182266f6e2df552bee.zip
Fix GCC 13 build
-rw-r--r--examples/pugl_vulkan_cpp_demo.cpp4
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";