[RTL]
[reactos.git] / 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 #ifndef RTL_H
12 #define RTL_H
13
14 /* We're a core NT DLL, we don't import syscalls */
15 #define WIN32_NO_STATUS
16 #define _INC_SWPRINTF_INL_
17 #undef __MSVCRT__
18
19 /* C Headers */
20 #include <stdlib.h>
21 #include <stdio.h>
22
23 /* PSDK/NDK Headers */
24 #include <windows.h>
25 #include <ndk/ntndk.h>
26
27 /* Internal RTL header */
28 #include "rtlp.h"
29
30 /* PSEH Support */
31 #include <pseh/pseh2.h>
32
33 #include <intrin.h>
34
35 /* Use intrinsics for x86 and x64 */
36 #if defined(_M_IX86) || defined(_M_AMD64)
37 #define InterlockedCompareExchange _InterlockedCompareExchange
38 #define InterlockedIncrement _InterlockedIncrement
39 #define InterlockedDecrement _InterlockedDecrement
40 #define InterlockedExchangeAdd _InterlockedExchangeAdd
41 #endif
42
43 #endif /* RTL_H */
44
45 /* EOF */