8a6d20066d127325f399a9c8eaf3455cb3ed4a66
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 /* mem_trim() must trim the buffer without relocating it.
19 * Since we can't do that, we just return the buffer passed in unchanged */
20 #define mem_trim(_m_, _s_) (_m_)
22 /* Unsigned int types */
23 typedef unsigned char u8_t
;
24 typedef unsigned short u16_t
;
25 typedef unsigned long u32_t
;
27 /* Signed int types */
28 typedef signed char s8_t
;
29 typedef signed short s16_t
;
30 typedef signed long s32_t
;
33 typedef ULONG_PTR mem_ptr_t
;
35 /* Printf/DPRINT formatters */
44 #define BYTE_ORDER LITTLE_ENDIAN
46 /* Checksum calculation algorithm choice */
47 #define LWIP_CHKSUM_ALGORITHM 3
50 #define LWIP_PLATFORM_DIAG(x) (DbgPrint x)
51 #define LWIP_PLATFORM_ASSERT(x) ASSERTMSG(x, FALSE)
54 #define SYS_ARCH_DECL_PROTECT(lev) sys_prot_t (lev)
55 #define SYS_ARCH_PROTECT(lev) sys_arch_protect(&(lev))
56 #define SYS_ARCH_UNPROTECT(lev) sys_arch_unprotect(lev)
58 /* Compiler hints for packing structures */
59 #define PACK_STRUCT_STRUCT
60 #define PACK_STRUCT_USE_INCLUDES