Received: from eggs.gnu.org ([2001:4830:134:3::10]:35106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIHqZ-0003a9-Fu for qemu-devel@nongnu.org; Wed, 29 Jun 2016 11:56:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIHqX-0005O5-AZ for qemu-devel@nongnu.org; Wed, 29 Jun 2016 11:56:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIHqX-0005Nb-57 for qemu-devel@nongnu.org; Wed, 29 Jun 2016 11:56:13 -0400 From: Markus Armbruster Date: Wed, 29 Jun 2016 17:55:58 +0200 Message-Id: <1467215765-22981-12-git-send-email-armbru@redhat.com> In-Reply-To: <1467215765-22981-1-git-send-email-armbru@redhat.com> References: <1467215765-22981-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH 11/18] spapr_pci: Include spapr.h instead of playing games with #error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, pbonzini@redhat.com, riku.voipio@iki.fi, rth@twiddle.net 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 --- include/hw/pci-host/spapr.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/hw/pci-host/spapr.h b/include/hw/pci-host/spapr.h index 7848366..49a44d9 100644 --- a/include/hw/pci-host/spapr.h +++ b/include/hw/pci-host/spapr.h @@ -16,13 +16,11 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see . */ -#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" -- 2.5.5