mirror of
https://github.com/reactos/reactos.git
synced 2025-05-17 16:27:00 +00: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:
parent
f9c8a7f47e
commit
2fcfb97eec
2 changed files with 16 additions and 5 deletions
|
@ -40,11 +40,7 @@
|
||||||
#define OPTIONAL
|
#define OPTIONAL
|
||||||
|
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
#define TRUE (!(FALSE))
|
#define TRUE 1
|
||||||
|
|
||||||
/* FIXME: this value is target specific, host tools MUST not use it
|
|
||||||
* and this line has to be removed */
|
|
||||||
#define PAGE_SIZE 4096
|
|
||||||
|
|
||||||
#define ANYSIZE_ARRAY 1
|
#define ANYSIZE_ARRAY 1
|
||||||
|
|
||||||
|
|
|
@ -103,6 +103,21 @@
|
||||||
#define ROUND_DOWN(a,b) (((a)/(b))*(b))
|
#define ROUND_DOWN(a,b) (((a)/(b))*(b))
|
||||||
#endif
|
#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 TAG_CM 0x68742020
|
||||||
|
|
||||||
#define CMAPI NTAPI
|
#define CMAPI NTAPI
|
||||||
|
|
Loading…
Reference in a new issue