X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/e1b74f61dfb6980d643cb7c666c761ff3bda2f1e..6a7cf7699dd3996bf0d6832d5da23f232b260713:/buildlib/config.h.in diff --git a/buildlib/config.h.in b/buildlib/config.h.in index ad6695d8c..d30ca90e7 100644 --- a/buildlib/config.h.in +++ b/buildlib/config.h.in @@ -33,3 +33,38 @@ /* The package name string */ #undef PACKAGE + +/* Generate the fixed bit size types */ +#if SIZEOF_INT == 4 +# define INT32 int +# define UINT32 unsigned int +#else +# if SIZEOF_LONG == 4 +# define INT32 long +# define UINT32 unsigned long +# else +# if SIZEOF_SHORT == 4 +# define INT32 short +# define UINT32 unsigned short +# else +# error Must have a form of 32-bit integer +# endif +# endif +#endif + +#if SIZEOF_INT == 2 +# define INT16 int +# define UINT16 unsigned int +#else +# if SIZEOF_LONG == 2 +# define INT16 long +# define UINT16 unsigned long +# else +# if SIZEOF_SHORT == 2 +# define INT16 short +# define UINT16 short +# else +# error Must have a form of 16-bit integer +# endif +# endif +#endif