ReactOS 0.4.16-dev-555-g690643f
cc.h
Go to the documentation of this file.
1/* ReactOS-Specific lwIP binding header - by Cameron Gutman */
2
3#include <wdm.h>
4
5/* ROS-specific mem defs */
6void *
7malloc(size_t size);
8
9void *
10calloc(size_t count, size_t size);
11
12void
13free(void *mem);
14
15void *
16realloc(void *mem, size_t size);
17
18/* Printf/DPRINT formatters */
19#define U16_F "hu"
20#define S16_F "hd"
21#define X16_F "hx"
22#define U32_F "lu"
23#define S32_F "ld"
24#define X32_F "lx"
25
26/* Endianness */
27#define BYTE_ORDER LITTLE_ENDIAN
28
29/* Checksum calculation algorithm choice */
30#define LWIP_CHKSUM_ALGORITHM 3
31
32/* Diagnostics */
33#define LWIP_PLATFORM_DIAG(x) (DbgPrint x)
34#define LWIP_PLATFORM_ASSERT(x) ASSERTMSG(x, FALSE)
35
36/* Synchronization */
37#define SYS_ARCH_DECL_PROTECT(lev) sys_prot_t (lev)
38#define SYS_ARCH_PROTECT(lev) sys_arch_protect(&(lev))
39#define SYS_ARCH_UNPROTECT(lev) sys_arch_unprotect(lev)
40
41/* Compiler hints for packing structures */
42#define PACK_STRUCT_STRUCT
43#define PACK_STRUCT_USE_INCLUDES
44
#define realloc
Definition: debug_ros.c:6
#define free
Definition: debug_ros.c:5
#define malloc
Definition: debug_ros.c:4
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLsizeiptr size
Definition: glext.h:5919
#define calloc
Definition: rosglue.h:14
Definition: mem.c:349