#define NTAPI_INLINE
#endif
-#if !defined(_NTSYSTEM_)
-#define NTSYSAPI DECLSPEC_IMPORT
-#define NTSYSCALLAPI DECLSPEC_IMPORT
-#else
-#define NTSYSAPI
-#if defined(_NTDLLBUILD_)
-#define NTSYSCALLAPI
-#else
-#define NTSYSCALLAPI DECLSPEC_ADDRSAFE
-#endif
-#endif
-
//
// Alignment Macros
//
typedef int (* _pfunccmp_t) (const void *, const void *);
-#define min(a,b) ((a)<(b)?(a):(b))
-
/*
* Qsort routine from Bentley & McIlroy's "Engineering a Sort Function".
*/
/* INCLUDES ******************************************************************/
-/* We're a core NT DLL, we don't import syscalls */
-#define _NTSYSTEM_
-#define _NTDLLBUILD_
+/* Definitions */
#define WIN32_NO_STATUS
#define _INC_SWPRINTF_INL_
-#define _CRT_SECURE_NO_DEPRECATE
-#define NO_RTL_INLINES
/* C Headers */
#include <stdio.h>
<define name="__USE_W32API" />
<define name="_NTOSKRNL_" />
<define name="__NO_CTYPE_INLINES" />
+ <define name="NO_RTL_INLINES" />
+ <define name="_CRTIMP=" />
+ <define name="_NTDLLBUILD_" />
+ <define name="_NTSYSTEM_" />
<include base="rtl">.</include>
<if property="ARCH" value="i386">
<directory name="i386">
#endif
#endif
+#if !defined(_NTSYSTEM_)
+#define NTSYSAPI DECLSPEC_IMPORT
+#define NTSYSCALLAPI DECLSPEC_IMPORT
+#else
+#define NTSYSAPI
+#if defined(_NTDLLBUILD_)
+#define NTSYSCALLAPI
+#else
+#define NTSYSCALLAPI DECLSPEC_ADDRSAFE
+#endif
+#endif
+
#ifndef VOID
#define VOID void
#endif