1 /* ReactOS-Specific lwIP binding header - by Cameron Gutman */
5 /* ROS-specific mem defs */
10 calloc(size_t count
, size_t size
);
16 realloc(void *mem
, size_t size
);
18 #define mem_trim(_m_, _s_) realloc(_m_, _s_)
20 /* Unsigned int types */
21 typedef unsigned char u8_t
;
22 typedef unsigned short u16_t
;
23 typedef unsigned long u32_t
;
25 /* Signed int types */
26 typedef signed char s8_t
;
27 typedef signed short s16_t
;
28 typedef signed long s32_t
;
31 typedef ULONG_PTR mem_ptr_t
;
33 /* Printf/DPRINT formatters */
42 #define BYTE_ORDER LITTLE_ENDIAN
44 /* Checksum calculation algorithm choice */
45 #define LWIP_CHKSUM_ALGORITHM 3
48 #define LWIP_PLATFORM_DIAG(x) (DbgPrint x)
49 #define LWIP_PLATFORM_ASSERT(x) ASSERTMSG(x, FALSE)
52 #define SYS_ARCH_DECL_PROTECT(lev) sys_prot_t (lev)
53 #define SYS_ARCH_PROTECT(lev) sys_arch_protect(&(lev))
54 #define SYS_ARCH_UNPROTECT(lev) sys_arch_unprotect(lev)
56 /* Compiler hints for packing structures */
57 #define PACK_STRUCT_STRUCT
58 #define PACK_STRUCT_USE_INCLUDES