Commit c3996780 for libheif
commit c3996780a3f4a4440f784b5db5d9cd86f655e80d
Author: Dirk Farin <dirk.farin@gmail.com>
Date: Sat Sep 19 20:26:10 2026 +0200
Include <SDL.h> instead of <SDL2/SDL.h> in heif-view (#1912)
SDL2's autotools-generated sdl2-config.cmake puts only <prefix>/include/SDL2
on the SDL2::SDL2 target, and the official Windows VC package installs the
headers flat into <prefix>/include. With those, <SDL2/SDL.h> only resolves
when <prefix>/include happens to be a compiler default path. That hides the
problem on Linux but breaks fink (/opt/sw) and MacPorts (/opt/local) on
macOS and the official Windows packages.
Every SDL2 config, including the one bundled in SDL2.framework, exports the
directory that directly contains SDL.h, so plain <SDL.h> works everywhere.
This reverts the include change from 47588e71 (#1570).
diff --git a/examples/sdl.hh b/examples/sdl.hh
index 6fc43d1b..8581fcf6 100644
--- a/examples/sdl.hh
+++ b/examples/sdl.hh
@@ -24,7 +24,7 @@
SOFTWARE.
*/
-#include <SDL2/SDL.h>
+#include <SDL.h>
#include <string>
#include <optional>