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 */
11 #endif /* HAVE_STDINT_H */
15 #endif /* HAVE_STDDEF_H */
17 @CHECK_TYPE_SIZE_PREMAIN@
23 #define SIZE (sizeof(@CHECK_TYPE_SIZE_TYPE@))
24 const char info_sizeof
[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','o','f','[',
25 ('0' + ((SIZE
/ 10000)%10)),
26 ('0' + ((SIZE
/ 1000)%10)),
27 ('0' + ((SIZE
/ 100)%10)),
28 ('0' + ((SIZE
/ 10)%10)),
33 int main(argc
, argv
) int argc
; char *argv
[];
35 int main(int argc
, char *argv
[])
39 require
+= info_sizeof
[argc
];
44 #else /* CHECK_TYPE_SIZE_TYPE */
46 # error "CHECK_TYPE_SIZE_TYPE has to specify the type"
48 #endif /* CHECK_TYPE_SIZE_TYPE */