1 /* krb5-types.h -- this file was generated for x86_64-unknown-netbsd6.99.40 by 2 $Id: krb5-types.h,v 1.6 2014/04/24 13:50:53 pettai Exp $ */ 3 4 #ifndef __krb5_types_h__ 5 #define __krb5_types_h__ 6 7 #include <inttypes.h> 8 #include <sys/types.h> 9 #include <sys/socket.h> 10 11 12 typedef socklen_t krb5_socklen_t; 13 #include <unistd.h> 14 typedef ssize_t krb5_ssize_t; 15 16 typedef int krb5_socket_t; 17 18 #ifndef HEIMDAL_DEPRECATED 19 #if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 ))) 20 #define HEIMDAL_DEPRECATED __attribute__((deprecated)) 21 #elif defined(_MSC_VER) && (_MSC_VER>1200) 22 #define HEIMDAL_DEPRECATED __declspec(deprecated) 23 #else 24 #define HEIMDAL_DEPRECATED 25 #endif 26 #endif 27 #ifndef HEIMDAL_PRINTF_ATTRIBUTE 28 #if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 ))) 29 #define HEIMDAL_PRINTF_ATTRIBUTE(x) __attribute__((format x)) 30 #else 31 #define HEIMDAL_PRINTF_ATTRIBUTE(x) 32 #endif 33 #endif 34 #ifndef HEIMDAL_NORETURN_ATTRIBUTE 35 #if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 ))) 36 #define HEIMDAL_NORETURN_ATTRIBUTE __attribute__((noreturn)) 37 #else 38 #define HEIMDAL_NORETURN_ATTRIBUTE 39 #endif 40 #endif 41 #ifndef HEIMDAL_UNUSED_ATTRIBUTE 42 #if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 ))) 43 #define HEIMDAL_UNUSED_ATTRIBUTE __attribute__((unused)) 44 #else 45 #define HEIMDAL_UNUSED_ATTRIBUTE 46 #endif 47 #endif 48 #endif /* __krb5_types_h__ */ 49