1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #cmakedefine CHECK_TYPE_SIZE_TYPE @CHECK_TYPE_SIZE_TYPE@
- #ifdef CHECK_TYPE_SIZE_TYPE
- @CHECK_TYPE_SIZE_PREINCLUDE@
- #ifdef HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif /* HAVE_SYS_TYPES_H */
- #ifdef HAVE_SYS_SOCKET_H
- # include <sys/socket.h>
- #endif
- #ifdef _WIN32
- # include <winsock2.h>
- # include <ws2tcpip.h>
- #endif
- #ifdef HAVE_STDINT_H
- # include <stdint.h>
- #endif /* HAVE_STDINT_H */
- #ifdef HAVE_STDDEF_H
- # include <stddef.h>
- #endif /* HAVE_STDDEF_H */
- @CHECK_TYPE_SIZE_PREMAIN@
- #ifdef __CLASSIC_C__
- int main(){
- int ac;
- char*av[];
- #else
- int main(int ac, char*av[]){
- #endif
- if(ac > 1000){return *av[0];}
- return sizeof(CHECK_TYPE_SIZE_TYPE);
- }
- #else /* CHECK_TYPE_SIZE_TYPE */
- # error "CHECK_TYPE_SIZE_TYPE has to specify the type"
- #endif /* CHECK_TYPE_SIZE_TYPE */
|