Go to the documentation of this file.
10 #ifndef COAP_LIBCOAP_H_
11 #define COAP_LIBCOAP_H_
22 #pragma comment(lib,"Ws2_32.lib")
24 typedef SSIZE_T ssize_t;
25 typedef USHORT in_port_t;
26 #elif !defined (CONTIKI)
27 #include <netinet/in.h>
28 #include <sys/socket.h>
31 #ifndef COAP_STATIC_INLINE
32 # if defined(__cplusplus)
33 # define COAP_STATIC_INLINE inline
35 # if defined(_MSC_VER)
36 # define COAP_STATIC_INLINE static __inline
38 # define COAP_STATIC_INLINE static inline
42 #ifndef COAP_DEPRECATED
43 # if defined(_MSC_VER)
44 # define COAP_DEPRECATED __declspec(deprecated)
46 # define COAP_DEPRECATED __attribute__ ((deprecated))