]> sjero.net Git - wget/blobdiff - src/sysdep.h
[svn] Don't define int32_t because we're not using it.
[wget] / src / sysdep.h
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