1 /*	$NetBSD: krb5-types.h,v 1.5 2011/04/24 22:24:14 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 
11 typedef socklen_t krb5_socklen_t;
12 #include <unistd.h>
13 typedef ssize_t krb5_ssize_t;
14 
15 typedef int krb5_socket_t;
16 
17 #ifndef HEIMDAL_DEPRECATED
18 #if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 )))
19 #define HEIMDAL_DEPRECATED __attribute__((deprecated))
20 #elif defined(_MSC_VER) && (_MSC_VER>1200)
21 #define HEIMDAL_DEPRECATED __declspec(deprecated)
22 #else
23 #define HEIMDAL_DEPRECATED
24 #endif
25 #endif
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))
29 #else
30 #define HEIMDAL_PRINTF_ATTRIBUTE(x)
31 #endif
32 #endif
33 #ifndef HEIMDAL_NORETURN_ATTRIBUTE
34 #if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 )))
35 #define HEIMDAL_NORETURN_ATTRIBUTE __attribute__((noreturn))
36 #else
37 #define HEIMDAL_NORETURN_ATTRIBUTE
38 #endif
39 #endif
40 #endif /* __krb5_types_h__ */
41