build: provide SIZEOF_SIZE_T definition for non-configure builds
authorYang Tse <yangsita@gmail.com>
Fri, 3 Dec 2010 03:41:16 +0000 (04:41 +0100)
committerYang Tse <yangsita@gmail.com>
Fri, 3 Dec 2010 03:41:16 +0000 (04:41 +0100)
config-dos.h
config-win32.h

index d17b6c8..653f8f8 100644 (file)
@@ -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(). */
index af9a6a8..898ba90 100644 (file)
 /* 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                          */
 /* ---------------------------------------------------------------- */