summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */
/* ---------------------------------------------------------------- */