~ubuntu-branches/ubuntu/vivid/openal-soft/vivid

« back to all changes in this revision

Viewing changes to cmake/CheckSharedFunctionExists.c

  • Committer: Package Import Robot
  • Author(s): Andres Mejia
  • Date: 2012-04-01 16:19:00 UTC
  • mfrom: (0.2.9)
  • Revision ID: package-import@ubuntu.com-20120401161900-4dy81gsmc70tvon2
Tags: 1:1.14-1
* New upstream release.
* Add CPPFLAGS to CFLAGS. (Closes: #666095)
* Enable new sndio support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifdef CHECK_SHARED_FUNCTION_EXISTS
2
 
 
3
 
#include <stdlib.h>
4
 
 
5
 
#ifndef CALLSTACK
6
 
#define CALLSTACK
7
 
#endif
8
 
 
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
18
 
 
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)
28
 
    {
29
 
    return *av[0];
30
 
    }
31
 
  return 0;
32
 
}
33
 
 
34
 
#else  /* CHECK_SHARED_FUNCTION_EXISTS */
35
 
 
36
 
#  error "CHECK_SHARED_FUNCTION_EXISTS has to specify the function"
37
 
 
38
 
#endif /* CHECK_SHARED_FUNCTION_EXISTS */