1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Don't define int32_t because we're not using it.

This commit is contained in:
hniksic 2003-10-13 07:20:51 -07:00
parent 0344e61d04
commit 7487dbfa81
5 changed files with 9 additions and 29 deletions

View 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> 2003-10-11 Hrvoje Niksic <hniksic@xemacs.org>
* utils.c (large_int_to_string): Use snprintf() to print the * utils.c (large_int_to_string): Use snprintf() to print the

View File

@ -275,9 +275,6 @@ char *alloca ();
/* Defined to int or size_t on systems without socklen_t. */ /* Defined to int or size_t on systems without socklen_t. */
#undef socklen_t #undef socklen_t
/* Define if you have int32_t. */
#undef HAVE_INT32_T
/* Define if you have u_int32_t. */ /* Define if you have u_int32_t. */
#undef HAVE_U_INT32_T #undef HAVE_U_INT32_T

View File

@ -245,26 +245,11 @@ void *memcpy ();
int fnmatch (); int fnmatch ();
#endif #endif
/* Provide 32-bit types. Most code shouldn't care, but there is code /* Provide u_int32_t on the platforms that don't define it. Although
that really needs a 32-bit integral type. If int32_t and u_int32_t most code should be agnostic about integer sizes, some code really
are present, we use them, otherwise we pick one of int/short/long, does need a 32-bit integral type. Such code should use u_int32_t.
and throw an error if none of them works. */ (The exception is gnu-md5.[ch], which uses its own detection for
portability across platforms.) */
#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
#ifndef HAVE_U_INT32_T #ifndef HAVE_U_INT32_T
# if SIZEOF_INT == 4 # if SIZEOF_INT == 4

View File

@ -195,9 +195,6 @@
/* Defined to int or size_t on systems without socklen_t. */ /* Defined to int or size_t on systems without socklen_t. */
#define socklen_t int #define socklen_t int
/* Define if you have int32_t. */
#define HAVE_INT32_T 1
/* Define if you have u_int32_t. */ /* Define if you have u_int32_t. */
#define HAVE_U_INT32_T 1 #define HAVE_U_INT32_T 1

View File

@ -199,9 +199,6 @@
/* Defined to int or size_t on systems without socklen_t. */ /* Defined to int or size_t on systems without socklen_t. */
#define socklen_t int #define socklen_t int
/* Define if you have int32_t. */
#define HAVE_INT32_T 1
/* Define if you have u_int32_t. */ /* Define if you have u_int32_t. */
#undef HAVE_U_INT32_T #undef HAVE_U_INT32_T