summaryrefslogtreecommitdiff
path: root/osinfo/osinfo_device_driver_private.h
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2021-11-25 09:57:47 +0000
committerDaniel P. Berrangé <berrange@redhat.com>2022-01-18 10:51:23 +0000
commiteeadc5499519405a1abc8b17ff08e7f144f4e82c (patch)
treef14a0694426dace7a8e9499419a83bfb6fef25d5 /osinfo/osinfo_device_driver_private.h
parentdb27486284643c804421c97cab8e872dec2d5862 (diff)
downloadlibosinfo-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_device_driver_private.h')
-rw-r--r--osinfo/osinfo_device_driver_private.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/osinfo/osinfo_device_driver_private.h b/osinfo/osinfo_device_driver_private.h
index db2ff61..0b39acb 100644
--- a/osinfo/osinfo_device_driver_private.h
+++ b/osinfo/osinfo_device_driver_private.h
@@ -18,13 +18,10 @@
* <http://www.gnu.org/licenses/>.
*/
-#include "osinfo_device_driver.h"
+#pragma once
-#ifndef __OSINFO_DEVICE_DRIVER_PRIVATE_H__
-# define __OSINFO_DEVICE_DRIVER_PRIVATE_H__
+#include "osinfo_device_driver.h"
OsinfoDeviceDriver *osinfo_device_driver_new(const gchar *id);
void osinfo_device_driver_add_device(OsinfoDeviceDriver *driver,
OsinfoDevice *device);
-
-#endif /* __OSINFO_DEVICE_DRIVER_PRIVATE_H__ */