diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-05-06 15:38:01 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-05-07 09:27:29 -0700 |
commit | 1b22d07fc1268e7c5343cccd562ab69a101baf91 (patch) | |
tree | e28be2ef87c842aceaa9ae695b877df853922c03 | |
parent | 30e388a8284ed100893983178acb6b4e3ff2b815 (diff) |
Use stdint.h instead of limits.h for UINT*_MAX definitions
While Solaris allows either one, C99 only requires them in stdint.h
and some platforms don't include them via limits.h
Corrects tinderbox reported errors on Fedora 11 build machine:
http://tinderbox.x.org/builds/2010-05-06-0019/logs/libXdmcp/#build
AA32.c: In function 'XdmcpAllocARRAY32':
AA32.c:47: error: 'UINT8_MAX' undeclared (first use in this function)
AA8.c: In function 'XdmcpAllocARRAY8':
AA8.c:47: error: 'UINT16_MAX' undeclared (first use in this function)
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Compiles clean on GNU/Linux AMD64
Tested-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r-- | AA16.c | 2 | ||||
-rw-r--r-- | AA32.c | 2 | ||||
-rw-r--r-- | AA8.c | 2 | ||||
-rw-r--r-- | AofA8.c | 2 | ||||
-rw-r--r-- | RaA16.c | 2 | ||||
-rw-r--r-- | RaA32.c | 2 | ||||
-rw-r--r-- | RaA8.c | 2 | ||||
-rw-r--r-- | RaAoA8.c | 2 |
8 files changed, 8 insertions, 8 deletions
@@ -36,7 +36,7 @@ in this Software without prior written authorization from The Open Group. #include <X11/X.h> #include <X11/Xmd.h> #include <X11/Xdmcp.h> -#include <limits.h> +#include <stdint.h> int XdmcpAllocARRAY16 (ARRAY16Ptr array, int length) @@ -36,7 +36,7 @@ in this Software without prior written authorization from The Open Group. #include <X11/X.h> #include <X11/Xmd.h> #include <X11/Xdmcp.h> -#include <limits.h> +#include <stdint.h> int XdmcpAllocARRAY32 (ARRAY32Ptr array, int length) @@ -36,7 +36,7 @@ in this Software without prior written authorization from The Open Group. #include <X11/X.h> #include <X11/Xmd.h> #include <X11/Xdmcp.h> -#include <limits.h> +#include <stdint.h> int XdmcpAllocARRAY8 (ARRAY8Ptr array, int length) @@ -36,7 +36,7 @@ in this Software without prior written authorization from The Open Group. #include <X11/X.h> #include <X11/Xmd.h> #include <X11/Xdmcp.h> -#include <limits.h> +#include <stdint.h> int XdmcpAllocARRAYofARRAY8 (ARRAYofARRAY8Ptr array, int length) @@ -36,7 +36,7 @@ in this Software without prior written authorization from The Open Group. #include <X11/X.h> #include <X11/Xmd.h> #include <X11/Xdmcp.h> -#include <limits.h> +#include <stdint.h> int XdmcpReallocARRAY16 (ARRAY16Ptr array, int length) @@ -36,7 +36,7 @@ in this Software without prior written authorization from The Open Group. #include <X11/X.h> #include <X11/Xmd.h> #include <X11/Xdmcp.h> -#include <limits.h> +#include <stdint.h> int XdmcpReallocARRAY32 (ARRAY32Ptr array, int length) @@ -36,7 +36,7 @@ in this Software without prior written authorization from The Open Group. #include <X11/X.h> #include <X11/Xmd.h> #include <X11/Xdmcp.h> -#include <limits.h> +#include <stdint.h> int XdmcpReallocARRAY8 (ARRAY8Ptr array, int length) @@ -36,7 +36,7 @@ in this Software without prior written authorization from The Open Group. #include <X11/X.h> #include <X11/Xmd.h> #include <X11/Xdmcp.h> -#include <limits.h> +#include <stdint.h> int XdmcpReallocARRAYofARRAY8 (ARRAYofARRAY8Ptr array, int length) |