~ubuntu-branches/ubuntu/natty/curl/natty-proposed

« back to all changes in this revision

Viewing changes to CMake/CheckTypeSize.c.in

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-05-24 21:12:19 UTC
  • mfrom: (1.1.12 upstream)
  • mto: (3.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: james.westby@ubuntu.com-20090524211219-7jgcwuhl04ixuqsm
Tags: upstream-7.19.5
ImportĀ upstreamĀ versionĀ 7.19.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#cmakedefine CHECK_TYPE_SIZE_TYPE @CHECK_TYPE_SIZE_TYPE@
 
2
#ifdef CHECK_TYPE_SIZE_TYPE
 
3
 
 
4
@CHECK_TYPE_SIZE_PREINCLUDE@
 
5
#ifdef HAVE_SYS_TYPES_H
 
6
#  include <sys/types.h>
 
7
#endif /* HAVE_SYS_TYPES_H */
 
8
 
 
9
#ifdef HAVE_STDINT_H
 
10
#  include <stdint.h>
 
11
#endif /* HAVE_STDINT_H */
 
12
 
 
13
#ifdef HAVE_STDDEF_H
 
14
#  include <stddef.h>
 
15
#endif /* HAVE_STDDEF_H */
 
16
 
 
17
@CHECK_TYPE_SIZE_PREMAIN@
 
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
  if(ac > 1000){return *av[0];}
 
27
  return sizeof(CHECK_TYPE_SIZE_TYPE);
 
28
}
 
29
 
 
30
#else  /* CHECK_TYPE_SIZE_TYPE */
 
31
 
 
32
#  error "CHECK_TYPE_SIZE_TYPE has to specify the type"
 
33
 
 
34
#endif /* CHECK_TYPE_SIZE_TYPE */