Go to the documentation of this file.
12 #ifndef COAP_LIBCOAP_H_
13 #define COAP_LIBCOAP_H_
24 #pragma comment(lib,"Ws2_32.lib")
26 typedef SSIZE_T ssize_t;
27 typedef USHORT in_port_t;
28 #elif !defined (CONTIKI)
29 #include <netinet/in.h>
30 #include <sys/socket.h>
33 #ifndef COAP_STATIC_INLINE
34 # if defined(__cplusplus)
35 # define COAP_STATIC_INLINE inline
37 # if defined(_MSC_VER)
38 # define COAP_STATIC_INLINE static __inline
40 # define COAP_STATIC_INLINE static inline
44 #ifndef COAP_DEPRECATED
45 # if defined(_MSC_VER)
46 # define COAP_DEPRECATED __declspec(deprecated)
48 # define COAP_DEPRECATED __attribute__ ((deprecated))
53 # define COAP_UNUSED __attribute__((unused))