pci_ids: no not include loader.h
[mesa.git] / include / pci_ids / pci_id_driver_map.h
index 2e88451e018816a849ac22b28a31ad374381272f..db9e07fbb282fad08efe634d4af3797985fa1fe7 100644 (file)
@@ -2,12 +2,15 @@
 #define _PCI_ID_DRIVER_MAP_H_
 
 #include <stddef.h>
-#include "loader.h"
 
 #ifndef ARRAY_SIZE
 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
 #endif
 
+#ifndef __IS_LOADER
+#  error "Only include from loader.c"
+#endif
+
 static const int i915_chip_ids[] = {
 #define CHIPSET(chip, desc, name) chip,
 #include "pci_ids/i915_pci_ids.h"