Reduce namespace pollution from gssapi.h

MFC after:	2 weeks
This commit is contained in:
dfr 2012-08-05 13:38:15 +00:00
parent 7d0b9e9190
commit 6596ce24fe

View File

@ -31,15 +31,13 @@
#ifndef _GSSAPI_GSSAPI_H_ #ifndef _GSSAPI_GSSAPI_H_
#define _GSSAPI_GSSAPI_H_ #define _GSSAPI_GSSAPI_H_
/* #include <sys/cdefs.h>
* First, include stddef.h to get size_t defined. #include <sys/_types.h>
*/
#include <stddef.h>
/* #ifndef _SIZE_T_DECLARED
* Include stdint.h to get explicitly sized data types. typedef __size_t size_t;
*/ #define _SIZE_T_DECLARED
#include <stdint.h> #endif
#ifndef _SSIZE_T_DECLARED #ifndef _SSIZE_T_DECLARED
typedef __ssize_t ssize_t; typedef __ssize_t ssize_t;
@ -67,7 +65,7 @@ typedef struct _gss_name_t *gss_name_t;
* unsigned integer supported by the platform that has at least * unsigned integer supported by the platform that has at least
* 32 bits of precision. * 32 bits of precision.
*/ */
typedef uint32_t gss_uint32; typedef __uint32_t gss_uint32;
#ifdef OM_STRING #ifdef OM_STRING
@ -89,7 +87,7 @@ typedef OM_object_identifier gss_OID_desc, *gss_OID;
*/ */
typedef gss_uint32 OM_uint32; typedef gss_uint32 OM_uint32;
typedef uint64_t OM_uint64; typedef __uint64_t OM_uint64;
typedef struct gss_OID_desc_struct { typedef struct gss_OID_desc_struct {
OM_uint32 length; OM_uint32 length;