1 #cmakedefine CHECK_TYPE_SIZE_TYPE @CHECK_TYPE_SIZE_TYPE@
2 #ifdef CHECK_TYPE_SIZE_TYPE
4 @CHECK_TYPE_SIZE_PREINCLUDE@
5 #ifdef HAVE_SYS_TYPES_H
6 # include <sys/types.h>
7 #endif /* HAVE_SYS_TYPES_H */
9 #ifdef HAVE_SYS_SOCKET_H
10 # include <sys/socket.h>
14 # include <winsock2.h>
15 # include <ws2tcpip.h>
21 #endif /* HAVE_STDINT_H */
25 #endif /* HAVE_STDDEF_H */
27 @CHECK_TYPE_SIZE_PREMAIN@
34 int main(int ac, char*av[]){
36 if(ac > 1000){return *av[0];}
37 return sizeof(CHECK_TYPE_SIZE_TYPE);
40 #else /* CHECK_TYPE_SIZE_TYPE */
42 # error "CHECK_TYPE_SIZE_TYPE has to specify the type"
44 #endif /* CHECK_TYPE_SIZE_TYPE */