Update tag value for tizen 2.0 build
[external/curl.git] / CMake / CheckTypeSize.c.in
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 */