Files
CMake/Tests/FindOpenAL/Test/main.cxx
T
nega 1d06554fc6 Tests: Fix FindOpenAL test for macOS framework
- Use framework-style includes.
- Hush deprecation warnings when compiling test.
2023-03-29 13:42:02 -04:00

19 lines
413 B
C++

#ifdef __APPLE__
# include "OpenAL/al.h"
# include "OpenAL/alc.h"
#else
# include <AL/al.h>
# include <AL/alc.h>
#endif
#include <stdio.h>
int main()
{
/* Reference an AL symbol without requiring a context at runtime. */
printf("&alGetString = %p\n", &alGetString);
/* Reference an ALC symbol without requiring a context at runtime. */
printf("&alcGetString = %p\n", &alcGetString);
return 0;
}