X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fsysdep.h;h=2defc65a349676a9445d31ff1561bde52de27906;hp=a42cfa8aef31698ef950d00d48b7e991687e65ab;hb=f58c6774e4650c0395cf9ab9828b8872553b7f4f;hpb=515538434058cab972900f65ae203c226f1796bc diff --git a/src/sysdep.h b/src/sysdep.h index a42cfa8a..2defc65a 100644 --- a/src/sysdep.h +++ b/src/sysdep.h @@ -243,4 +243,30 @@ void *memcpy (); int fnmatch (); #endif +/* Provide 32-bit types for the code that really needs it. */ + +#ifndef HAVE_INT32_T +# if SIZEOF_INT == 4 +typedef int int32_t; +# else +# if SIZEOF_LONG == 4 +typedef long int32_t; +# else + "Cannot determine a 32-bit type" +# endif +# endif +#endif + +#ifndef HAVE_U_INT32_T +# if SIZEOF_INT == 4 +typedef unsigned int u_int32_t; +# else +# if SIZEOF_LONG == 4 +typedef unsigned long u_int32_t; +# else + "Cannot determine a 32-bit type" +# endif +# endif +#endif + #endif /* SYSDEP_H */