[NTOSKRNL]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 22 Nov 2010 14:08:41 +0000 (14:08 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 22 Nov 2010 14:08:41 +0000 (14:08 +0000)
Don't include initguid.h in a global header. It causes the guids to be generated in every object file, using 16 bytes per guid. We were lucky that the linker seemed to detect duplicates, so that the resulting image size isn't affected. Add a new file guid.c, that only contains the guids.

svn path=/branches/cmake-bringup/; revision=49708

ntoskrnl/CMakeLists.txt
ntoskrnl/include/internal/po.h
ntoskrnl/po/guid.c [new file with mode: 0644]

index 92dd29c..ae4148c 100644 (file)
@@ -215,6 +215,7 @@ list(APPEND SOURCE
     ob/obsecure.c
     ob/obwait.c
     po/events.c
+    po/guid.c
     po/poshtdwn.c
     po/povolume.c
     po/power.c
index ef4ee1a..86e2559 100644 (file)
@@ -6,7 +6,7 @@
 * PROGRAMMERS:     Alex Ionescu (alex.ionescu@reactos.org)
 */
 
-#include "initguid.h"
+#include <guiddef.h>
 #include <poclass.h>
 
 //
diff --git a/ntoskrnl/po/guid.c b/ntoskrnl/po/guid.c
new file mode 100644 (file)
index 0000000..a3ec319
--- /dev/null
@@ -0,0 +1,4 @@
+
+#include <wdm.h>
+#include <initguid.h>
+#include <poclass.h>