krb5-types.h revision 1.3
1/* $NetBSD: krb5-types.h,v 1.3 2011/04/15 12:19:20 elric Exp $ */ 2 3#ifndef __krb5_types_h__ 4#define __krb5_types_h__ 5 6#include <inttypes.h> 7#include <sys/types.h> 8#include <sys/socket.h> 9 10 11typedef socklen_t krb5_socklen_t; 12#include <unistd.h> 13typedef ssize_t krb5_ssize_t; 14 15typedef int krb5_socket_t; 16 17#define HEIMDAL_DEPRECATED 18 19#ifndef HEIMDAL_DEPRECATED 20#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 ))) 21#define HEIMDAL_DEPRECATED __attribute__((deprecated)) 22#elif defined(_MSC_VER) && (_MSC_VER>1200) 23#define HEIMDAL_DEPRECATED __declspec(deprecated) 24#else 25#define HEIMDAL_DEPRECATED 26#endif 27#endif 28#ifndef HEIMDAL_PRINTF_ATTRIBUTE 29#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 ))) 30#define HEIMDAL_PRINTF_ATTRIBUTE(x) __attribute__((format x)) 31#else 32#define HEIMDAL_PRINTF_ATTRIBUTE(x) 33#endif 34#endif 35#ifndef HEIMDAL_NORETURN_ATTRIBUTE 36#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 ))) 37#define HEIMDAL_NORETURN_ATTRIBUTE __attribute__((noreturn)) 38#else 39#define HEIMDAL_NORETURN_ATTRIBUTE 40#endif 41#endif 42#endif /* __krb5_types_h__ */ 43