]> Git Repo - qemu.git/commitdiff
spapr_pci: Include spapr.h instead of playing games with #error
authorMarkus Armbruster <[email protected]>
Wed, 29 Jun 2016 09:31:09 +0000 (11:31 +0200)
committerMarkus Armbruster <[email protected]>
Tue, 12 Jul 2016 14:19:16 +0000 (16:19 +0200)
include/hw/pci-host/spapr.h needs hw/ppc/spapr.h.  It checks whether
its header guard is defined, and errors out if it isn't.

Playing games with some other header's guard symbol is not a good
idea.  Just include the frackin' header already.

Signed-off-by: Markus Armbruster <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
include/hw/pci-host/spapr.h

index 193631d2dc118a0ba14dbfc941c80d803d38a5f6..7b63243ffbf40843b770f22129baabef3d6d9d22 100644 (file)
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
-#if !defined(__HW_SPAPR_H__)
-#error Please include spapr.h before this file!
-#endif
 
 #if !defined(__HW_SPAPR_PCI_H__)
 #define __HW_SPAPR_PCI_H__
 
+#include "hw/ppc/spapr.h"
 #include "hw/pci/pci.h"
 #include "hw/pci/pci_host.h"
 #include "hw/ppc/xics.h"
This page took 0.029324 seconds and 4 git commands to generate.