summaryrefslogtreecommitdiff
path: root/loaders/python
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2023-03-16 16:34:02 -0700
committerChristian Hergert <chergert@redhat.com>2023-03-22 16:44:35 -0700
commit35e70f0b4581276955cc9caa5088afea1a9d6ca6 (patch)
tree3fa5e842b57e2af016cf4cd5658b204690364071 /loaders/python
parent39bcd89306a72c04871433e9b4587b075ab4127a (diff)
downloadlibpeas-35e70f0b4581276955cc9caa5088afea1a9d6ca6.tar.gz
janitorial: use #pragma once
We can rely on modern compilers to support #pragma once instead of doing the #ifndef style.
Diffstat (limited to 'loaders/python')
-rw-r--r--loaders/python/peas-plugin-loader-python.h6
-rw-r--r--loaders/python/peas-python-internal.h5
2 files changed, 2 insertions, 9 deletions
diff --git a/loaders/python/peas-plugin-loader-python.h b/loaders/python/peas-plugin-loader-python.h
index 51c289c..f634d59 100644
--- a/loaders/python/peas-plugin-loader-python.h
+++ b/loaders/python/peas-plugin-loader-python.h
@@ -22,8 +22,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __PEAS_PLUGIN_LOADER_PYTHON_H__
-#define __PEAS_PLUGIN_LOADER_PYTHON_H__
+#pragma once
#include <libpeas/peas-plugin-loader.h>
#include <libpeas/peas-object-module.h>
@@ -55,6 +54,3 @@ GType peas_plugin_loader_python_get_type (void) G_GNUC_CONST
G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
G_END_DECLS
-
-#endif /* __PEAS_PLUGIN_LOADER_PYTHON_H__ */
-
diff --git a/loaders/python/peas-python-internal.h b/loaders/python/peas-python-internal.h
index da9e815..f3b3aa3 100644
--- a/loaders/python/peas-python-internal.h
+++ b/loaders/python/peas-python-internal.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __PEAS_PYTHON_INTERNAL_H__
-#define __PEAS_PYTHON_INTERNAL_H__
+#pragma once
#include <glib.h>
@@ -43,5 +42,3 @@ PyObject *peas_python_internal_call (const gchar *name,
...);
G_END_DECLS
-
-#endif /* __PEAS_PYTHON_INTERNAL_H__ */