mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[NDK] DATA_SEG requires an extra #pragma on MSVC
This commit is contained in:
parent
6645227270
commit
f3e1697c2b
2 changed files with 10 additions and 0 deletions
|
@ -36,6 +36,11 @@
|
|||
#include <ndk/kefuncs.h>
|
||||
#include <ndk/rtlfuncs.h>
|
||||
|
||||
/* For MSVC, this is required before using DATA_SEG (used in pcidata) */
|
||||
#ifdef _MSC_VER
|
||||
# pragma section("INIT", read,execute,discard)
|
||||
#endif
|
||||
|
||||
/* Internal shared PCI and ACPI header */
|
||||
#include <drivers/pci/pci.h>
|
||||
#include <drivers/acpi/acpi.h>
|
||||
|
|
|
@ -65,6 +65,11 @@ ULONG CmpTypeCount[MaximumType + 1];
|
|||
|
||||
HANDLE CmpRegistryRootHandle;
|
||||
|
||||
// for MSVC, this is required before using DATA_SEG
|
||||
#ifdef _MSC_VER
|
||||
# pragma section("INIT", read,execute,discard)
|
||||
#endif
|
||||
|
||||
DATA_SEG("INIT") UNICODE_STRING CmClassName[MaximumClass + 1] =
|
||||
{
|
||||
RTL_CONSTANT_STRING(L"System"),
|
||||
|
|
Loading…
Reference in a new issue