aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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";