mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
Move definition of UINT32_MAX.
This allows us to always define it if needed not just if we also define the type ourself.
This commit is contained in:
parent
f73ab8a811
commit
0d11447691
@ -244,9 +244,6 @@ typedef unsigned short int u_int16_t;
|
|||||||
# endif
|
# endif
|
||||||
# if (SIZEOF_INT == 4)
|
# if (SIZEOF_INT == 4)
|
||||||
typedef unsigned int u_int32_t;
|
typedef unsigned int u_int32_t;
|
||||||
# if defined(HAVE_DECL_UINT32_MAX) && (HAVE_DECL_UINT32_MAX == 0)
|
|
||||||
# define UINT32_MAX UINT_MAX
|
|
||||||
# endif
|
|
||||||
# else
|
# else
|
||||||
# error "32 bit int type not found."
|
# error "32 bit int type not found."
|
||||||
# endif
|
# endif
|
||||||
@ -254,6 +251,12 @@ typedef unsigned int u_int32_t;
|
|||||||
#define __BIT_TYPES_DEFINED__
|
#define __BIT_TYPES_DEFINED__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_DECL_UINT32_MAX) && (HAVE_DECL_UINT32_MAX == 0)
|
||||||
|
# if (SIZEOF_INT == 4)
|
||||||
|
# define UINT32_MAX UINT_MAX
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* 64-bit types */
|
/* 64-bit types */
|
||||||
#ifndef HAVE_INT64_T
|
#ifndef HAVE_INT64_T
|
||||||
# if (SIZEOF_LONG_INT == 8)
|
# if (SIZEOF_LONG_INT == 8)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user