mirror of
https://github.com/reactos/reactos.git
synced 2026-07-04 17:04:19 +08:00
- Don't define PAGE_SIZE in typedefs.h as -- "this value is target specific, host tools MUST not use it and this line has to be removed". Instead, define it locally for cmlib.
- Also correct TRUE definition in this header svn path=/trunk/; revision=37358
This commit is contained in:
@@ -40,11 +40,7 @@
|
||||
#define OPTIONAL
|
||||
|
||||
#define FALSE 0
|
||||
#define TRUE (!(FALSE))
|
||||
|
||||
/* FIXME: this value is target specific, host tools MUST not use it
|
||||
* and this line has to be removed */
|
||||
#define PAGE_SIZE 4096
|
||||
#define TRUE 1
|
||||
|
||||
#define ANYSIZE_ARRAY 1
|
||||
|
||||
|
||||
@@ -103,6 +103,21 @@
|
||||
#define ROUND_DOWN(a,b) (((a)/(b))*(b))
|
||||
#endif
|
||||
|
||||
//
|
||||
// PAGE_SIZE definition
|
||||
//
|
||||
#ifndef PAGE_SIZE
|
||||
#if defined(_M_IX86)
|
||||
#define PAGE_SIZE 0x1000
|
||||
#elif defined(_M_AMD64)
|
||||
#define PAGE_SIZE 0x1000
|
||||
#elif defined(_M_ARM)
|
||||
#define PAGE_SIZE 0x1000
|
||||
#else
|
||||
#error Local PAGE_SIZE definition required
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define TAG_CM 0x68742020
|
||||
|
||||
#define CMAPI NTAPI
|
||||
|
||||
Reference in New Issue
Block a user