https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0efcfec0440a8a373753c…
commit 0efcfec0440a8a373753c1e94507d6c6bec19bbb
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Thu Apr 18 21:17:00 2019 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Thu Apr 18 21:17:00 2019 +0200
[NTOBJSHEX] Reorder include files in the precompiled header
---
dll/shellext/ntobjshex/ntobjenum.h | 6 +-----
dll/shellext/ntobjshex/precomp.h | 6 ++++++
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/dll/shellext/ntobjshex/ntobjenum.h b/dll/shellext/ntobjshex/ntobjenum.h
index 51937df1b5..253c483c12 100644
--- a/dll/shellext/ntobjshex/ntobjenum.h
+++ b/dll/shellext/ntobjshex/ntobjenum.h
@@ -15,12 +15,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#pragma once
-extern "C" {
-#define NTOS_MODE_USER
-#include <ndk/ntndk.h>
-#include <ndk/rtlfuncs.h>
-}
// All the possible values are defined here because I want the type field to be
// "persistable" and not change if more types are added in the future.
diff --git a/dll/shellext/ntobjshex/precomp.h b/dll/shellext/ntobjshex/precomp.h
index 55a055723e..d221a8c671 100644
--- a/dll/shellext/ntobjshex/precomp.h
+++ b/dll/shellext/ntobjshex/precomp.h
@@ -10,6 +10,12 @@
#define COM_NO_WINDOWS_H
#define NTOS_MODE_USER
+extern "C"
+{
+#include <ndk/ntndk.h>
+#include <ndk/rtlfuncs.h>
+}
+
#include <windef.h>
#include <winbase.h>
#include <winreg.h>