Validate buffers given to alureBufferDataFromStream
[alure.git] / cmake / CheckSharedFunctionExists.c
blobc3e4d6fc6d7dbaaa069056c0cdcf2ef4eac8bc42
1 #ifdef CHECK_SHARED_FUNCTION_EXISTS
3 #ifdef _WIN32
4 char __declspec(dllimport) CHECK_SHARED_FUNCTION_EXISTS();
5 #else
6 char CHECK_SHARED_FUNCTION_EXISTS();
7 #endif
9 #ifdef __CLASSIC_C__
10 int main(){
11 int ac;
12 char*av[];
13 #else
14 int main(int ac, char*av[]){
15 #endif
16 CHECK_SHARED_FUNCTION_EXISTS();
17 if(ac > 1000)
19 return *av[0];
21 return 0;
24 #else /* CHECK_SHARED_FUNCTION_EXISTS */
26 # error "CHECK_SHARED_FUNCTION_EXISTS has to specify the function"
28 #endif /* CHECK_SHARED_FUNCTION_EXISTS */