src/cpu: use #pragma once in headers

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Jonathon Jongsma 2019-06-07 15:20:22 -05:00 committed by Ján Tomko
parent 222e0f0f08
commit b7779b2938
8 changed files with 48 additions and 74 deletions

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_CPU_H
# define LIBVIRT_CPU_H
#pragma once
#include "virerror.h"
#include "datatypes.h"
@ -264,5 +263,3 @@ char *virCPUDataFormat(const virCPUData *data)
ATTRIBUTE_NONNULL(1);
virCPUDataPtr virCPUDataParse(const char *xmlStr)
ATTRIBUTE_NONNULL(1);
#endif /* LIBVIRT_CPU_H */

View File

@ -18,11 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_CPU_ARM_H
# define LIBVIRT_CPU_ARM_H
#pragma once
#include "cpu.h"
extern struct cpuArchDriver cpuDriverArm;
#endif /* LIBVIRT_CPU_ARM_H */

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_CPU_MAP_H
# define LIBVIRT_CPU_MAP_H
#pragma once
#include "virxml.h"
@ -34,5 +33,3 @@ cpuMapLoad(const char *arch,
cpuMapLoadCallback featureCB,
cpuMapLoadCallback modelCB,
void *data);
#endif /* LIBVIRT_CPU_MAP_H */

View File

@ -18,11 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_CPU_PPC64_H
# define LIBVIRT_CPU_PPC64_H
#pragma once
#include "cpu.h"
extern struct cpuArchDriver cpuDriverPPC64;
#endif /* LIBVIRT_CPU_PPC64_H */

View File

@ -18,9 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_CPU_PPC64_DATA_H
# define LIBVIRT_CPU_PPC64_DATA_H
#pragma once
typedef struct _virCPUppc64PVR virCPUppc64PVR;
struct _virCPUppc64PVR {
@ -35,5 +33,3 @@ struct _virCPUppc64Data {
size_t len;
virCPUppc64PVR *pvr;
};
#endif /* LIBVIRT_CPU_PPC64_DATA_H */

View File

@ -18,11 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_CPU_S390_H
# define LIBVIRT_CPU_S390_H
#pragma once
#include "cpu.h"
extern struct cpuArchDriver cpuDriverS390;
#endif /* LIBVIRT_CPU_S390_H */

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_CPU_X86_H
# define LIBVIRT_CPU_X86_H
#pragma once
#include "cpu.h"
#include "cpu_x86_data.h"
@ -44,5 +43,3 @@ int virCPUx86DataSetVendor(virCPUDataPtr cpuData,
int virCPUx86DataAddFeature(virCPUDataPtr cpuData,
const char *name);
#endif /* LIBVIRT_CPU_X86_H */

View File

@ -18,9 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_CPU_X86_DATA_H
# define LIBVIRT_CPU_X86_DATA_H
#pragma once
typedef struct _virCPUx86CPUID virCPUx86CPUID;
typedef virCPUx86CPUID *virCPUx86CPUIDPtr;
@ -98,5 +96,3 @@ struct _virCPUx86Data {
size_t len;
virCPUx86DataItem *items;
};
#endif /* LIBVIRT_CPU_X86_DATA_H */