2 * generic krb5-types.h for cross compiling, assume system is posix/sus
5 #ifndef __krb5_types_h__
6 #define __krb5_types_h__
10 #include <sys/socket.h>
12 typedef socklen_t krb5_socklen_t;
14 typedef ssize_t krb5_ssize_t;
16 #ifndef HEIMDAL_DEPRECATED
17 #if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 )))
18 #define HEIMDAL_DEPRECATED __attribute__((deprecated))
19 #elif defined(_MSC_VER) && (_MSC_VER>1200)
20 #define HEIMDAL_DEPRECATED __declspec(deprecated)
22 #define HEIMDAL_DEPRECATED
26 #ifndef HEIMDAL_PRINTF_ATTRIBUTE
27 #if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 )))
28 #define HEIMDAL_PRINTF_ATTRIBUTE(x) __attribute__((format x))
30 #define HEIMDAL_PRINTF_ATTRIBUTE(x)
34 #ifndef HEIMDAL_NORETURN_ATTRIBUTE
35 #if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 )))
36 #define HEIMDAL_NORETURN_ATTRIBUTE __attribute__((noreturn))
38 #define HEIMDAL_NORETURN_ATTRIBUTE
42 typedef int krb5_socket_t;
44 #endif /* __krb5_types_h__ */