mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[NDK] DATA_SEG requires an extra #pragma on MSVC
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user