[gnome-multi-writer] Use #pragma once in headers
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-multi-writer] Use #pragma once in headers
- Date: Wed, 4 Mar 2020 13:39:04 +0000 (UTC)
commit c322c475a6682d6765978ef8def3ba3f5d2c4f9b
Author: Richard Hughes <richard hughsie com>
Date: Tue Mar 3 16:39:01 2020 +0000
Use #pragma once in headers
src/gmw-cleanup.h | 9 +--------
src/gmw-device.h | 8 +-------
2 files changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/src/gmw-cleanup.h b/src/gmw-cleanup.h
index 44ec1a2..84d9497 100644
--- a/src/gmw-cleanup.h
+++ b/src/gmw-cleanup.h
@@ -20,13 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef __GMW_CLEANUP_H__
-#define __GMW_CLEANUP_H__
+#pragma once
#include <gio/gio.h>
-G_BEGIN_DECLS
-
#define GS_DEFINE_CLEANUP_FUNCTION0(Type, name, func) \
static inline void name (void *v) \
{ \
@@ -37,7 +34,3 @@ G_BEGIN_DECLS
GS_DEFINE_CLEANUP_FUNCTION0(GObject*, gs_local_obj_unref, g_object_unref)
#define _cleanup_object_unref_ __attribute__ ((cleanup(gs_local_obj_unref)))
-
-G_END_DECLS
-
-#endif
diff --git a/src/gmw-device.h b/src/gmw-device.h
index a40d693..33928f8 100644
--- a/src/gmw-device.h
+++ b/src/gmw-device.h
@@ -19,8 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef __GMW_DEVICE_H__
-#define __GMW_DEVICE_H__
+#pragma once
#include <gio/gio.h>
#include <glib-object.h>
@@ -95,8 +94,3 @@ void gmw_device_set_write_alloc (GmwDevice *self,
gdouble write_alloc);
void gmw_device_set_error (GmwDevice *self,
const GError *error);
-
-G_END_DECLS
-
-#endif /* __GMW_DEVICE_H__ */
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]