~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to CMake/CheckTypeSize.c.in

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2011-02-28 19:35:36 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: james.westby@ubuntu.com-20110228193536-p3a9jawxxofcsz7o
Tags: upstream-7.21.4
ImportĀ upstreamĀ versionĀ 7.21.4

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_SYS_SOCKET_H
10
 
#  include <sys/socket.h>
11
 
#endif
12
 
 
13
 
#ifdef _WIN32
14
 
#  include <winsock2.h>
15
 
#  include <ws2tcpip.h>
16
 
#endif
17
 
 
18
 
 
19
 
#ifdef HAVE_STDINT_H
20
 
#  include <stdint.h>
21
 
#endif /* HAVE_STDINT_H */
22
 
 
23
 
#ifdef HAVE_STDDEF_H
24
 
#  include <stddef.h>
25
 
#endif /* HAVE_STDDEF_H */
26
 
 
27
 
@CHECK_TYPE_SIZE_PREMAIN@
28
 
 
29
 
#ifdef __CLASSIC_C__
30
 
int main(){
31
 
  int ac;
32
 
  char*av[];
33
 
#else
34
 
int main(int ac, char*av[]){
35
 
#endif
36
 
  if(ac > 1000){return *av[0];}
37
 
  return sizeof(CHECK_TYPE_SIZE_TYPE);
38
 
}
39
 
 
40
 
#else  /* CHECK_TYPE_SIZE_TYPE */
41
 
 
42
 
#  error "CHECK_TYPE_SIZE_TYPE has to specify the type"
43
 
 
44
 
#endif /* CHECK_TYPE_SIZE_TYPE */