#cmakedefine CHECK_TYPE_SIZE_TYPE @CHECK_TYPE_SIZE_TYPE@ #ifdef CHECK_TYPE_SIZE_TYPE @CHECK_TYPE_SIZE_PREINCLUDE@ #ifdef HAVE_SYS_TYPES_H # include #endif /* HAVE_SYS_TYPES_H */ #ifdef _WIN32 # include # include #endif #ifdef HAVE_STDINT_H # include #endif /* HAVE_STDINT_H */ #ifdef HAVE_STDDEF_H # include #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 */