]> granicus.if.org Git - curl/commitdiff
build: provide SIZEOF_SIZE_T definition for non-configure builds
authorYang Tse <yangsita@gmail.com>
Thu, 2 Dec 2010 20:41:23 +0000 (21:41 +0100)
committerYang Tse <yangsita@gmail.com>
Thu, 2 Dec 2010 20:41:23 +0000 (21:41 +0100)
lib/config-amigaos.h
lib/config-mac.h
lib/config-os400.h
lib/config-riscos.h
lib/config-win32.h
lib/config-win32ce.h

index a9fd567740ac83ebdf90c06875efd6d5804e39c9..99b96d6563c2d26983bfef52fb047128709300f6 100644 (file)
@@ -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
index 740f1d97c287d1b912a6ac2ffa561bad7bbfcd3a..1f7950ab1c2304c71562c560852c0d1b2266bcc5 100644 (file)
@@ -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
index dad4d0c355d9a70c6e66d6602d66caa12acce4c2..370fc1138213ff1b6055a42382d4c3011009e6c4 100644 (file)
 /* 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
index 98bb7880f43b6d823532371609afda212afb347c..84683aa2668c3cbeee1b749165fb0bbe6ff49887 100644 (file)
 /* 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
 
index 5ee76065d87da188df5c9deb43a9426bbbef2c7b..67bfec3c0616d34bbf3237a1d78dcebbb9eeac29 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                          */
 /* ---------------------------------------------------------------- */
index 1f417825ed140f17edac6cfc73fe128b49da62d2..3a5913e99af6bf603878634dbfc925a962eea090 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                          */
 /* ---------------------------------------------------------------- */