summaryrefslogtreecommitdiff
path: root/Modules/CheckSizeOf.c
blob: 139a3ab7dd31ad1e2fda2b6456bcb2e35abc57cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifdef CHECK_SIZE_OF

#ifdef HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif /* HAVE_SYS_TYPES_H */

#ifdef HAVE_STDINT_H
#  include <stdint.h>
#endif /* HAVE_STDINT_H */

int main()
{
  return sizeof(CHECK_SIZE_OF);
}

#else  /* CHECK_SIZE_OF */

#  error "CHECK_SIZE_OF has to specify the type"

#endif /* CHECK_SIZE_OF */