[polari/wip/fmuellner/lib-cleanup: 2/4] lib: Replace #include guards with #pragma once
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/fmuellner/lib-cleanup: 2/4] lib: Replace #include guards with #pragma once
- Date: Fri, 8 Dec 2017 22:24:50 +0000 (UTC)
commit aea5074484f04faf9223ba625339bdcbd04db734
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Dec 8 23:18:26 2017 +0100
lib: Replace #include guards with #pragma once
It's more concise and supported by all compilers we care about ...
src/lib/polari-drag-helper.h | 5 +----
src/lib/polari-room.h | 5 +----
src/lib/polari-util.h | 5 +----
3 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/src/lib/polari-drag-helper.h b/src/lib/polari-drag-helper.h
index a456611..87751d3 100644
--- a/src/lib/polari-drag-helper.h
+++ b/src/lib/polari-drag-helper.h
@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.";
*/
-#ifndef __POLARI_DRAG_HELPER_H__
-#define __POLARI_DRAG_HELPER_H__
+#pragma once
#include <gtk/gtk.h>
@@ -34,5 +33,3 @@ guint polari_drag_dest_find_target (GtkWidget *widget,
GdkDragContext *context);
G_END_DECLS
-
-#endif /* __POLARI_DRAG_HELPER_H__ */
diff --git a/src/lib/polari-room.h b/src/lib/polari-room.h
index 0170245..db882b8 100644
--- a/src/lib/polari-room.h
+++ b/src/lib/polari-room.h
@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.";
*/
-#ifndef __POLARI_ROOM_H__
-#define __POLARI_ROOM_H__
+#pragma once
#include <glib-object.h>
@@ -52,5 +51,3 @@ char *polari_create_room_id (TpAccount *account,
TpHandleType type);
G_END_DECLS
-
-#endif /* __POLARI_ROOM_H__ */
diff --git a/src/lib/polari-util.h b/src/lib/polari-util.h
index 0475105..5d0f46b 100644
--- a/src/lib/polari-util.h
+++ b/src/lib/polari-util.h
@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.";
*/
-#ifndef __POLARI_UTIL_H__
-#define __POLARI_UTIL_H__
+#pragma once
#include <glib.h>
@@ -27,5 +26,3 @@ gboolean polari_util_match_identify_message (const char *message,
char **command,
char **username,
char **password);
-
-#endif /* __POLARI_UTIL_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]