build: provide SIZEOF_SIZE_T definition for non-configure builds

This commit is contained in:
Yang Tse
2010-12-02 21:41:23 +01:00
parent 81c16c2e30
commit 99a07a1fdf
6 changed files with 22 additions and 0 deletions

View File

@@ -345,6 +345,13 @@
/* The size of `short', as computed by sizeof. */
#define SIZEOF_SHORT 2
/* The size of `size_t', as computed by sizeof. */
#if defined(_WIN64)
# define SIZEOF_SIZE_T 8
#else
# define SIZEOF_SIZE_T 4
#endif
/* ---------------------------------------------------------------- */
/* STRUCT RELATED */
/* ---------------------------------------------------------------- */