[NDK] DATA_SEG requires an extra #pragma on MSVC
[reactos.git] / hal / halx86 / include / hal.h
index 8606519..ec38e8c 100644 (file)
 #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>