diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2018-12-13 14:53:50 +0000 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2018-12-14 10:47:13 +0000 |
commit | 568a417224e7b4656b9959b03154d45566480d65 (patch) | |
tree | 66b75820f39f352933581634d3d16e55a3431b67 /tests/cputest.c | |
parent | 4cfd7090212cbe38572274a7fff2475f4f8e87b7 (diff) | |
download | libvirt-568a417224e7b4656b9959b03154d45566480d65.tar.gz |
Enforce a standard header file guard symbol name
Require that all headers are guarded by a symbol named
LIBVIRT_$FILENAME
where $FILENAME is the uppercased filename, with all characters
outside a-z changed into '_'.
Note we do not use a leading __ because that is technically a
namespace reserved for the toolchain.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'tests/cputest.c')
-rw-r--r-- | tests/cputest.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/cputest.c b/tests/cputest.c index 64d85f34db..b75d864d8e 100644 --- a/tests/cputest.c +++ b/tests/cputest.c @@ -38,9 +38,8 @@ #if WITH_QEMU && WITH_YAJL # include "testutilsqemu.h" # include "qemumonitortestutils.h" -# define __QEMU_CAPSPRIV_H_ALLOW__ +# define LIBVIRT_QEMU_CAPSPRIV_H_ALLOW # include "qemu/qemu_capspriv.h" -# undef __QEMU_CAPSPRIV_H_ALLOW__ #endif #define VIR_FROM_THIS VIR_FROM_CPU |