Only consider output speakers for the panning LUT
[openal-soft/android/lowlatency.git] / cmake / CheckSharedFunctionExists.c
blob31e3fa926ae7f11554918df9c5f505402b429521
1 #ifdef CHECK_SHARED_FUNCTION_EXISTS
3 #include <stdlib.h>
5 #ifndef CALLSTACK
6 #define CALLSTACK
7 #endif
9 #ifdef _WIN32
10 #ifdef ARGSTACK
11 char __stdcall CHECK_SHARED_FUNCTION_EXISTS(ARGSTACK);
12 #else
13 char __stdcall CHECK_SHARED_FUNCTION_EXISTS(void);
14 #endif
15 #else
16 char CHECK_SHARED_FUNCTION_EXISTS();
17 #endif
19 #ifdef __CLASSIC_C__
20 int main(){
21 int ac;
22 char*av[];
23 #else
24 int main(int ac, char*av[]){
25 #endif
26 CHECK_SHARED_FUNCTION_EXISTS(CALLSTACK);
27 if(ac > 1000)
29 return *av[0];
31 return 0;
34 #else /* CHECK_SHARED_FUNCTION_EXISTS */
36 # error "CHECK_SHARED_FUNCTION_EXISTS has to specify the function"
38 #endif /* CHECK_SHARED_FUNCTION_EXISTS */