From: Timo Kreuzer Date: Mon, 22 Nov 2010 14:08:41 +0000 (+0000) Subject: [NTOSKRNL] X-Git-Tag: backups/GSoC_2011/GSoC_Themes@51550~442 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=d208da9a5bf62564a5d45cf581dc4d9d958b56e5 [NTOSKRNL] 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 --- diff --git a/ntoskrnl/CMakeLists.txt b/ntoskrnl/CMakeLists.txt index 92dd29c53d8..ae4148cf33b 100644 --- a/ntoskrnl/CMakeLists.txt +++ b/ntoskrnl/CMakeLists.txt @@ -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 diff --git a/ntoskrnl/include/internal/po.h b/ntoskrnl/include/internal/po.h index ef4ee1a5ff1..86e25595164 100644 --- a/ntoskrnl/include/internal/po.h +++ b/ntoskrnl/include/internal/po.h @@ -6,7 +6,7 @@ * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org) */ -#include "initguid.h" +#include #include // diff --git a/ntoskrnl/po/guid.c b/ntoskrnl/po/guid.c new file mode 100644 index 00000000000..a3ec3196c0f --- /dev/null +++ b/ntoskrnl/po/guid.c @@ -0,0 +1,4 @@ + +#include +#include +#include