diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/freealut/unix_headers.patch | |
Diffstat (limited to 'vcpkg/ports/freealut/unix_headers.patch')
| -rw-r--r-- | vcpkg/ports/freealut/unix_headers.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vcpkg/ports/freealut/unix_headers.patch b/vcpkg/ports/freealut/unix_headers.patch new file mode 100644 index 0000000..aabf69e --- /dev/null +++ b/vcpkg/ports/freealut/unix_headers.patch @@ -0,0 +1,32 @@ +diff --git a/include/AL/alut.h b/include/AL/alut.h +index 4b05a3c..1084604 100644 +--- a/include/AL/alut.h ++++ b/include/AL/alut.h +@@ -1,24 +1,18 @@ + #if !defined(AL_ALUT_H) + #define AL_ALUT_H + +-#if defined(_MSC_VER) + #include <alc.h> + #include <al.h> +-#elif defined(__APPLE__) +-#include <OpenAL/alc.h> +-#include <OpenAL/al.h> +-#else +-#include <AL/al.h> +-#include <AL/alc.h> +-#endif + + #if defined(__cplusplus) + extern "C" { + #endif + + #if defined(_WIN32) && !defined(_XBOX) +- #if defined (ALUT_BUILD_LIBRARY) ++ #if defined(ALUT_BUILD_LIBRARY) + #define ALUT_API __declspec(dllexport) ++ #elif defined(ALUT_BUILD_STATIC) ++ #define ALUT_API extern + #else + #define ALUT_API __declspec(dllimport) + #endif |