STYLE: Nightly Version update
[cmake.git] / Modules / CheckTypeSize.c.in
blob822d9c5e623f40e14b47944a470f7036665491fe
1 #ifdef CHECK_TYPE_SIZE_TYPE
3 @CHECK_TYPE_SIZE_PREINCLUDE@
5 #ifdef HAVE_SYS_TYPES_H
6 # include <sys/types.h>
7 #endif /* HAVE_SYS_TYPES_H */
9 #ifdef HAVE_STDINT_H
10 # include <stdint.h>
11 #endif /* HAVE_STDINT_H */
13 #ifdef HAVE_STDDEF_H
14 # include <stddef.h>
15 #endif /* HAVE_STDDEF_H */
17 @CHECK_TYPE_SIZE_PREMAIN@
19 #ifdef __CLASSIC_C__
20 int main(){
21 int ac;
22 char*av[];
23 #else
24 int main(int ac, char*av[]){
25 #endif
26 if(ac > 1000){return *av[0];}
27 return sizeof(CHECK_TYPE_SIZE_TYPE);
30 #else /* CHECK_TYPE_SIZE_TYPE */
32 # error "CHECK_TYPE_SIZE_TYPE has to specify the type"
34 #endif /* CHECK_TYPE_SIZE_TYPE */