]> sjero.net Git - wget/commitdiff
[svn] Don't define int32_t because we're not using it.
authorhniksic <devnull@localhost>
Mon, 13 Oct 2003 14:20:51 +0000 (07:20 -0700)
committerhniksic <devnull@localhost>
Mon, 13 Oct 2003 14:20:51 +0000 (07:20 -0700)
src/ChangeLog
src/config.h.in
src/sysdep.h
windows/config.h.bor
windows/config.h.ms

index 21a91547b370ab0897dcf9cc15727be5dd90b3ae..1b5177ca8ca8513323e4be32702a7e0a48be13f5 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-13  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * sysdep.h: Only define u_int32_t.
+
 2003-10-11  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * utils.c (large_int_to_string): Use snprintf() to print the
index 64d1459f03d6f7c24dae3e4557c9409a574b77a2..7be0706ceffebd60492cf62898be6be65dd90822 100644 (file)
@@ -275,9 +275,6 @@ char *alloca ();
 /* Defined to int or size_t on systems without socklen_t.  */
 #undef socklen_t
 
-/* Define if you have int32_t.  */
-#undef HAVE_INT32_T
-
 /* Define if you have u_int32_t.  */
 #undef HAVE_U_INT32_T
 
index 5d74f48a632758954830692940dde067df948219..7854eafafa17e65e9605f1815aecae2e7fb0672b 100644 (file)
@@ -245,26 +245,11 @@ void *memcpy ();
 int fnmatch ();
 #endif
 
-/* Provide 32-bit types.  Most code shouldn't care, but there is code
-   that really needs a 32-bit integral type.  If int32_t and u_int32_t
-   are present, we use them, otherwise we pick one of int/short/long,
-   and throw an error if none of them works.  */
-
-#ifndef HAVE_INT32_T
-# if SIZEOF_INT == 4
-typedef int int32_t;
-# else
-#  if SIZEOF_LONG == 4
-typedef long int32_t;
-#  else
-#   if SIZEOF_SHORT == 4
-typedef short int32_t;
-#   else
- #error "Cannot determine a 32-bit type"
-#   endif
-#  endif
-# endif
-#endif
+/* Provide u_int32_t on the platforms that don't define it.  Although
+   most code should be agnostic about integer sizes, some code really
+   does need a 32-bit integral type.  Such code should use u_int32_t.
+   (The exception is gnu-md5.[ch], which uses its own detection for
+   portability across platforms.)  */
 
 #ifndef HAVE_U_INT32_T
 # if SIZEOF_INT == 4
index a350c90befab0973b5f20958c58dae6842983342..a51e25ab52aff01eb6278071d844eb69b34a9e0e 100644 (file)
 /* Defined to int or size_t on systems without socklen_t.  */
 #define socklen_t int
 
-/* Define if you have int32_t.  */
-#define HAVE_INT32_T 1
-
 /* Define if you have u_int32_t.  */
 #define HAVE_U_INT32_T 1
 
index a3b10d81eab764d09e99d53e66aeabc35252cec0..a11a4b4ec0cc854aaccef8579087b9e1198e51cf 100644 (file)
 /* Defined to int or size_t on systems without socklen_t.  */
 #define socklen_t int
 
-/* Define if you have int32_t.  */
-#define HAVE_INT32_T 1
-
 /* Define if you have u_int32_t.  */
 #undef HAVE_U_INT32_T