I'm a bit surprised that this works.
Don't we have those big "don't use the PCH for this file" warnings in
every guid.c? This library consists only of guid.c's :p
On 2017-12-09 13:04, Amine Khaldi wrote:
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=69005963fb4b1378f6a66…
commit 69005963fb4b1378f6a666c2b8b2483c222740f8
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Sat Dec 9 13:04:23 2017 +0100
[UUID] Add a PCH.
---
sdk/lib/uuid/CMakeLists.txt | 4 +++-
sdk/lib/uuid/precomp.h | 10 ++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/sdk/lib/uuid/CMakeLists.txt b/sdk/lib/uuid/CMakeLists.txt
index d99bc73a35..09efcd927f 100644
--- a/sdk/lib/uuid/CMakeLists.txt
+++ b/sdk/lib/uuid/CMakeLists.txt
@@ -219,7 +219,9 @@ list(APPEND SOURCE
# vcguids.c
wdmguids.c
otherguids.c
- undoc.c)
+ undoc.c
+ precomp.h)
add_library(uuid ${SOURCE})
+add_pch(uuid precomp.h SOURCE)
add_dependencies(uuid psdk)
diff --git a/sdk/lib/uuid/precomp.h b/sdk/lib/uuid/precomp.h
new file mode 100644
index 0000000000..abe35fac5e
--- /dev/null
+++ b/sdk/lib/uuid/precomp.h
@@ -0,0 +1,10 @@
+#ifndef _UUID_PRECOMP_H_
+#define _UUID_PRECOMP_H_
+
+#define WIN32_NO_STATUS
+#define WIN32_LEAN_AND_MEAN
+
+#include <rpc.h>
+#include <rpcndr.h>
+
+#endif /* _UUID_PRECOMP_H_ */