mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 07:41:51 +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/kefuncs.h>
|
||||||
#include <ndk/rtlfuncs.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 */
|
/* Internal shared PCI and ACPI header */
|
||||||
#include <drivers/pci/pci.h>
|
#include <drivers/pci/pci.h>
|
||||||
#include <drivers/acpi/acpi.h>
|
#include <drivers/acpi/acpi.h>
|
||||||
|
|
|
@ -65,6 +65,11 @@ ULONG CmpTypeCount[MaximumType + 1];
|
||||||
|
|
||||||
HANDLE CmpRegistryRootHandle;
|
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] =
|
DATA_SEG("INIT") UNICODE_STRING CmClassName[MaximumClass + 1] =
|
||||||
{
|
{
|
||||||
RTL_CONSTANT_STRING(L"System"),
|
RTL_CONSTANT_STRING(L"System"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue