summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-12-03 03:41:16 (GMT)
committerYang Tse <yangsita@gmail.com>2010-12-03 03:41:16 (GMT)
commit4d061e6b2302e50121fa2fe815a05b12ae8b832c (patch)
treeb0e1cf881862333e08f951c2179e3873591a9368
parent09331032a0831f08d1e0890ab5f1f232e40097c7 (diff)
downloadc-ares-4d061e6b2302e50121fa2fe815a05b12ae8b832c.zip
c-ares-4d061e6b2302e50121fa2fe815a05b12ae8b832c.tar.gz
c-ares-4d061e6b2302e50121fa2fe815a05b12ae8b832c.tar.bz2
build: provide SIZEOF_SIZE_T definition for non-configure builds
-rw-r--r--config-dos.h1
-rw-r--r--config-win32.h7
2 files changed, 8 insertions, 0 deletions
diff --git a/config-dos.h b/config-dos.h
index d17b6c8..653f8f8 100644
--- a/config-dos.h
+++ b/config-dos.h
@@ -32,6 +32,7 @@
#define RETSIGTYPE void
#define SIZEOF_INT 4
#define SIZEOF_SHORT 2
+#define SIZEOF_SIZE_T 4
#define TIME_WITH_SYS_TIME 1
/* Qualifiers for send(), recv(), recvfrom() and getnameinfo(). */
diff --git a/config-win32.h b/config-win32.h
index af9a6a8..898ba90 100644
--- a/config-win32.h
+++ b/config-win32.h
@@ -227,6 +227,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 */
/* ---------------------------------------------------------------- */