diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2021-11-25 09:57:47 +0000 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2022-01-18 10:51:23 +0000 |
commit | eeadc5499519405a1abc8b17ff08e7f144f4e82c (patch) | |
tree | f14a0694426dace7a8e9499419a83bfb6fef25d5 /osinfo/osinfo_devicelinklist.h | |
parent | db27486284643c804421c97cab8e872dec2d5862 (diff) | |
download | libosinfo-eeadc5499519405a1abc8b17ff08e7f144f4e82c.tar.gz |
osinfo: switch to '#pragma once'
The current include files use the pattern
#ifndef __OOSINFO_BLAH_H__
# define __OOSINFO_BLAH_H__
#endif /* __OOSINFO_BLAH_H__ */
Since we already mandated GCC + CLang, we can replace this with a
simpler incantation
#pragma once
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'osinfo/osinfo_devicelinklist.h')
-rw-r--r-- | osinfo/osinfo_devicelinklist.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/osinfo/osinfo_devicelinklist.h b/osinfo/osinfo_devicelinklist.h index c8ac57e..906a588 100644 --- a/osinfo/osinfo_devicelinklist.h +++ b/osinfo/osinfo_devicelinklist.h @@ -18,16 +18,15 @@ * <http://www.gnu.org/licenses/>. */ +#pragma once + #include <glib-object.h> #include <osinfo/osinfo_filter.h> #include <osinfo/osinfo_list.h> -#ifndef __OSINFO_DEVICELINKLIST_H__ -# define __OSINFO_DEVICELINKLIST_H__ - -# include "osinfo/osinfo_macros.h" +#include "osinfo/osinfo_macros.h" -# define OSINFO_TYPE_DEVICELINKLIST (osinfo_devicelinklist_get_type ()) +#define OSINFO_TYPE_DEVICELINKLIST (osinfo_devicelinklist_get_type ()) OSINFO_DECLARE_TYPE_WITH_PRIVATE_AND_CLASS(OsinfoDeviceLinkList, osinfo_devicelinklist, OSINFO, @@ -45,5 +44,3 @@ G_DEPRECATED_FOR(osinfo_list_new_union) OsinfoDeviceLinkList *osinfo_devicelinklist_new_union(OsinfoDeviceLinkList *sourceOne, OsinfoDeviceLinkList *sourceTwo); OsinfoDeviceList *osinfo_devicelinklist_get_devices(OsinfoDeviceLinkList *list, OsinfoFilter *filter); - -#endif /* __OSINFO_DEVICELINKLIST_H__ */ |