#include "rtlp.h"
/* PSEH Support */
-#include <reactos/helper.h>
-#include <pseh/pseh.h>
+#include <pseh/pseh2.h>
-#ifndef _MSC_VER
#include <intrin.h>
+
+/* Use intrinsics for x86 and x64 */
+#if defined(_M_IX86) || defined(_M_AMD64)
+#define InterlockedCompareExchange _InterlockedCompareExchange
+#define InterlockedIncrement _InterlockedIncrement
+#define InterlockedDecrement _InterlockedDecrement
+#define InterlockedExchangeAdd _InterlockedExchangeAdd
#endif
#endif /* RTL_H */