Author: sginsberg
Date: Fri Nov 21 16:03:45 2008
New Revision: 37532
URL: http://svn.reactos.org/svn/reactos?rev=37532&view=rev
Log:
- More hack, less build breakage
Modified:
trunk/reactos/include/psdk/powrprof.h
Modified: trunk/reactos/include/psdk/powrprof.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/powrprof.h?re…
==============================================================================
--- trunk/reactos/include/psdk/powrprof.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/powrprof.h [iso-8859-1] Fri Nov 21 16:03:45 2008
@@ -1,10 +1,12 @@
#ifndef _POWRPROF_H
#define _POWRPROF_H
+#ifndef __WINE_WINTERNL_H
/* FIXME: Include this, so NTSTATUS gets defined.
Not very clean, but I can't get the hacH^H^H^override used
by official PSDK to work. */
#include <ntsecapi.h>
+#endif
#ifdef __cplusplus
extern "C" {
Author: sginsberg
Date: Fri Nov 21 15:31:01 2008
New Revision: 37530
URL: http://svn.reactos.org/svn/reactos?rev=37530&view=rev
Log:
- Hack-include ntsecapi.h in powrprof.h, so NTSTATUS gets defined in an NDK-safe way. Not the best way, and most likely not compatible with the official header set, but I can't get the hack used by MS headers to work.
Modified:
trunk/reactos/include/psdk/powrprof.h
Modified: trunk/reactos/include/psdk/powrprof.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/powrprof.h?re…
==============================================================================
--- trunk/reactos/include/psdk/powrprof.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/powrprof.h [iso-8859-1] Fri Nov 21 15:31:01 2008
@@ -1,8 +1,10 @@
#ifndef _POWRPROF_H
#define _POWRPROF_H
-#if __GNUC__ >= 3
-#pragma GCC system_header
-#endif
+
+/* FIXME: Include this, so NTSTATUS gets defined.
+ Not very clean, but I can't get the hacH^H^H^override used
+ by official PSDK to work. */
+#include <ntsecapi.h>
#ifdef __cplusplus
extern "C" {
@@ -16,9 +18,6 @@
#define NEWSCHEME (UINT)-1
#ifndef RC_INVOKED
-#ifndef NTSTATUS
-typedef LONG NTSTATUS, *PNTSTATUS;
-#endif
typedef struct _GLOBAL_MACHINE_POWER_POLICY{
ULONG Revision;