From: Thomas Bluemel Date: Sun, 20 Nov 2005 18:54:55 +0000 (+0000) Subject: disable defining ntstatus codes in windows.h/winnt.h when using ndk X-Git-Tag: backups/ros-branch-0_2_9@19949~540 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=096266737bf04de43162e4bfc358f239e7f36c3a;hp=bf60481a6bb73bcf4b88300dbbd60fbfc33fd5a4 disable defining ntstatus codes in windows.h/winnt.h when using ndk svn path=/trunk/; revision=19382 --- diff --git a/rosapps/sysutils/ctm/ctm.c b/rosapps/sysutils/ctm/ctm.c index 64dfc7bba71..b2218170e9b 100644 --- a/rosapps/sysutils/ctm/ctm.c +++ b/rosapps/sysutils/ctm/ctm.c @@ -32,6 +32,7 @@ #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows //headers +#define WIN32_NO_STATUS #include #include diff --git a/rosapps/sysutils/tlist/tlist.c b/rosapps/sysutils/tlist/tlist.c index 8f68f88831b..aed90896c69 100644 --- a/rosapps/sysutils/tlist/tlist.c +++ b/rosapps/sysutils/tlist/tlist.c @@ -5,6 +5,7 @@ * Copyright (c) 2000,2001 Emanuele Aliberti */ #include +#define WIN32_NO_STATUS #include #define NTOS_MODE_USER #include diff --git a/rosapps/tests/apc/apc.c b/rosapps/tests/apc/apc.c index 99244dd997c..8ff1c00b6c6 100644 --- a/rosapps/tests/apc/apc.c +++ b/rosapps/tests/apc/apc.c @@ -1,5 +1,6 @@ #include #include +#define WIN32_NO_STATUS #include #define NTOS_MODE_USER #include diff --git a/rosapps/tests/atomtest/atomtest.c b/rosapps/tests/atomtest/atomtest.c index c482c3965a4..740e13a133e 100644 --- a/rosapps/tests/atomtest/atomtest.c +++ b/rosapps/tests/atomtest/atomtest.c @@ -1,5 +1,6 @@ #include #include +#define WIN32_NO_STATUS #include #define NTOS_MODE_USER #include diff --git a/rosapps/tests/diskspeed/diskspeed.c b/rosapps/tests/diskspeed/diskspeed.c index dca9d1724ba..e7e52dfc0b5 100644 --- a/rosapps/tests/diskspeed/diskspeed.c +++ b/rosapps/tests/diskspeed/diskspeed.c @@ -10,7 +10,7 @@ #include #include - +#define WIN32_NO_STATUS #include #define NTOS_MODE_USER #include diff --git a/rosapps/tests/hivetest/hivetest.c b/rosapps/tests/hivetest/hivetest.c index 160b56af9f5..8de1b45c1b8 100644 --- a/rosapps/tests/hivetest/hivetest.c +++ b/rosapps/tests/hivetest/hivetest.c @@ -1,7 +1,7 @@ #include #include #include - +#define WIN32_NO_STATUS #include #define NTOS_MODE_USER #include diff --git a/rosapps/tests/isotest/isotest.c b/rosapps/tests/isotest/isotest.c index 7dea1250c50..a0c4921e5e3 100644 --- a/rosapps/tests/isotest/isotest.c +++ b/rosapps/tests/isotest/isotest.c @@ -2,6 +2,7 @@ * isotest - display cdrom information */ +#define WIN32_NO_STATUS #include #define NTOS_MODE_USER #include diff --git a/rosapps/tests/suspend/suspend.c b/rosapps/tests/suspend/suspend.c index 4706116766a..a1f8a0697b7 100644 --- a/rosapps/tests/suspend/suspend.c +++ b/rosapps/tests/suspend/suspend.c @@ -1,5 +1,5 @@ #define UNICODE - +#define WIN32_NO_STATUS #include #include #define NTOS_MODE_USER diff --git a/rosapps/tests/terminate/terminate.c b/rosapps/tests/terminate/terminate.c index 9553194dc5e..7fd749f6b89 100644 --- a/rosapps/tests/terminate/terminate.c +++ b/rosapps/tests/terminate/terminate.c @@ -1,5 +1,5 @@ #define UNICODE - +#define WIN32_NO_STATUS #include #include #define NTOS_MODE_USER diff --git a/rosapps/tests/threadwait/threadwait.c b/rosapps/tests/threadwait/threadwait.c index d359a4108f5..06c20c4259d 100644 --- a/rosapps/tests/threadwait/threadwait.c +++ b/rosapps/tests/threadwait/threadwait.c @@ -4,6 +4,7 @@ * Purpose: Probe for PsUnblockThread crash due to double-acquire spin lock. */ +#define WIN32_NO_STATUS #include #include