aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-12-02 21:41:23 +0100
committerYang Tse <yangsita@gmail.com>2010-12-02 21:41:23 +0100
commit99a07a1fdf2a4e0ee37e8c324fcb6d52222ebaff (patch)
treec12dd4ed7fb334291a6ca2d37b0b76fff8e120b1
parent81c16c2e30deac6d39e2897b1d2a3623971b126d (diff)
build: provide SIZEOF_SIZE_T definition for non-configure builds
-rw-r--r--lib/config-amigaos.h1
-rw-r--r--lib/config-mac.h1
-rw-r--r--lib/config-os400.h3
-rw-r--r--lib/config-riscos.h3
-rw-r--r--lib/config-win32.h7
-rw-r--r--lib/config-win32ce.h7
6 files changed, 22 insertions, 0 deletions
diff --git a/lib/config-amigaos.h b/lib/config-amigaos.h
index a9fd56774..99b96d656 100644
--- a/lib/config-amigaos.h
+++ b/lib/config-amigaos.h
@@ -86,6 +86,7 @@
#define SIZEOF_INT 4
#define SIZEOF_SHORT 2
+#define SIZEOF_SIZE_T 4
#define USE_OPENSSL 1
#define USE_SSLEAY 1
diff --git a/lib/config-mac.h b/lib/config-mac.h
index 740f1d97c..1f7950ab1 100644
--- a/lib/config-mac.h
+++ b/lib/config-mac.h
@@ -61,6 +61,7 @@
#define SIZEOF_INT 4
#define SIZEOF_SHORT 2
+#define SIZEOF_SIZE_T 4
#define HAVE_GETNAMEINFO 1
#define GETNAMEINFO_QUAL_ARG1 const
diff --git a/lib/config-os400.h b/lib/config-os400.h
index dad4d0c35..370fc1138 100644
--- a/lib/config-os400.h
+++ b/lib/config-os400.h
@@ -364,6 +364,9 @@
/* The size of `short', as computed by sizeof. */
#define SIZEOF_SHORT 2
+/* The size of `size_t', as computed by sizeof. */
+#define SIZEOF_SIZE_T 8
+
/* Whether long long constants must be suffixed by LL. */
#define HAVE_LL
diff --git a/lib/config-riscos.h b/lib/config-riscos.h
index 98bb7880f..84683aa26 100644
--- a/lib/config-riscos.h
+++ b/lib/config-riscos.h
@@ -350,6 +350,9 @@
/* The size of `short', as computed by sizeof. */
#define SIZEOF_SHORT 2
+/* The size of `size_t', as computed by sizeof. */
+#define SIZEOF_SIZE_T 4
+
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
diff --git a/lib/config-win32.h b/lib/config-win32.h
index 5ee76065d..67bfec3c0 100644
--- a/lib/config-win32.h
+++ b/lib/config-win32.h
@@ -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 */
/* ---------------------------------------------------------------- */
diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h
index 1f417825e..3a5913e99 100644
--- a/lib/config-win32ce.h
+++ b/lib/config-win32ce.h
@@ -322,6 +322,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 */
/* ---------------------------------------------------------------- */