diff options
author | Jonathon Jongsma <jjongsma@redhat.com> | 2019-06-18 11:13:14 -0500 |
---|---|---|
committer | Ján Tomko <jtomko@redhat.com> | 2019-06-19 17:12:34 +0200 |
commit | c35d8a7d5e8266268433b7242361c170c54f4eff (patch) | |
tree | 7e9ebe571458098c213a522c60473ec6ec08dc0a /tests/testutilsqemu.h | |
parent | 78b2a0396672c760de903572407fb3596174d772 (diff) | |
download | libvirt-c35d8a7d5e8266268433b7242361c170c54f4eff.tar.gz |
tests: 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>
Diffstat (limited to 'tests/testutilsqemu.h')
-rw-r--r-- | tests/testutilsqemu.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/tests/testutilsqemu.h b/tests/testutilsqemu.h index 25dedb5edd..0632141d68 100644 --- a/tests/testutilsqemu.h +++ b/tests/testutilsqemu.h @@ -14,18 +14,17 @@ * <http://www.gnu.org/licenses/>. */ -#ifndef LIBVIRT_TESTUTILSQEMU_H -# define LIBVIRT_TESTUTILSQEMU_H +#pragma once -# ifdef WITH_QEMU +#ifdef WITH_QEMU -# include "capabilities.h" -# include "virfilecache.h" -# include "domain_conf.h" -# include "qemu/qemu_capabilities.h" -# include "qemu/qemu_conf.h" +# include "capabilities.h" +# include "virfilecache.h" +# include "domain_conf.h" +# include "qemu/qemu_capabilities.h" +# include "qemu/qemu_conf.h" -# define TEST_QEMU_CAPS_PATH abs_srcdir "/qemucapabilitiesdata" +# define TEST_QEMU_CAPS_PATH abs_srcdir "/qemucapabilitiesdata" enum { GIC_NONE = 0, @@ -107,6 +106,4 @@ int testQemuInfoSetArgs(struct testQemuInfo *info, virHashTablePtr capslatest, ...); void testQemuInfoClear(struct testQemuInfo *info); -# endif - -#endif /* LIBVIRT_TESTUTILSQEMU_H */ +#endif |