- More NDK/MSDDK compatibility fixes.
[reactos.git] / reactos / lib / rtl / rtl.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS System Libraries
4 * FILE: lib/rtl/rtl.h
5 * PURPOSE: Run-Time Libary Header
6 * PROGRAMMER: Alex Ionescu
7 */
8
9 /* INCLUDES ******************************************************************/
10
11 /* We're a core NT DLL, we don't import syscalls */
12 #define _NTSYSTEM_
13 #define _NTDLLBUILD_
14
15 /* C Headers */
16 #include <stdio.h>
17
18 /* PSDK/NDK Headers */
19 #include <windows.h>
20 #define NTOS_MODE_USER
21 #include <ndk/ntndk.h>
22
23 /* Helper Header */
24 #include <reactos/helper.h>
25
26 /* FIXME: Move this somewhere else, maybe */
27 #ifdef DBG
28 extern VOID FASTCALL CHECK_PAGED_CODE_RTL(char *file, int line);
29 #define PAGED_CODE_RTL() CHECK_PAGED_CODE_RTL(__FILE__, __LINE__)
30 #else
31 #define PAGED_CODE_RTL()
32 #endif
33
34 extern PVOID RtlpAllocateMemory(UINT Bytes, ULONG Tag);
35 extern VOID RtlpFreeMemory(PVOID Mem, ULONG Tag);
36 extern KPROCESSOR_MODE RtlpGetMode();
37
38 #define RtlpAllocateStringMemory RtlpAllocateMemory
39 #define RtlpFreeStringMemory RtlpFreeMemory
40
41 #define TAG_USTR TAG('U', 'S', 'T', 'R')
42 #define TAG_ASTR TAG('A', 'S', 'T', 'R')
43 #define TAG_OSTR TAG('O', 'S', 'T', 'R')
44
45 /* EOF */