Commit 46619b6a authored by Adrien Plazas's avatar Adrien Plazas

Guard header inclusions with #pragma once

This standardizes the header inclusion guards to #pragma once, which
shouldn't be a problem as we already were using it in some files.
parent b6593b07
......@@ -4,8 +4,7 @@
* SPDX-License-Identifier: LGPL-2.1+
*/
#ifndef HANDY_H
#define HANDY_H
#pragma once
#include <gtk/gtk.h>
......@@ -41,5 +40,3 @@ G_BEGIN_DECLS
#undef _HANDY_INSIDE
G_END_DECLS
#endif /* HANDY_H */
......@@ -4,8 +4,7 @@
* SPDX-License-Identifier: LGPL-2.1+
*/
#ifndef HDY_ARROWS_H
#define HDY_ARROWS_H
#pragma once
#if !defined(_HANDY_INSIDE) && !defined(HANDY_COMPILATION)
#error "Only <handy.h> can be included directly."
......@@ -57,5 +56,3 @@ guint hdy_arrows_get_duration (HdyArrows *self);
void hdy_arrows_animate (HdyArrows *self);
G_END_DECLS
#endif /* HDY_ARROWS_H */
......@@ -4,8 +4,7 @@
* SPDX-License-Identifier: LGPL-2.1+
*/
#ifndef HDY_DIALER_BUTTON_H
#define HDY_DIALER_BUTTON_H
#pragma once
#if !defined(_HANDY_INSIDE) && !defined(HANDY_COMPILATION)
#error "Only <handy.h> can be included directly."
......@@ -29,5 +28,3 @@ gint hdy_dialer_button_get_digit (HdyDialerButton *self);
const char *hdy_dialer_button_get_symbols (HdyDialerButton *self);
G_END_DECLS
#endif /* HDY_DIALER_BUTTON_H */
......@@ -4,8 +4,7 @@
* SPDX-License-Identifier: LGPL-2.1+
*/
#ifndef HDY_DIALER_CYCLE_BUTTON_H
#define HDY_DIALER_CYCLE_BUTTON_H
#pragma once
#if !defined(_HANDY_INSIDE) && !defined(HANDY_COMPILATION)
#error "Only <handy.h> can be included directly."
......@@ -43,5 +42,3 @@ void hdy_dialer_cycle_button_set_cycle_timeout (HdyDialerCycleButt
gint timeout);
G_END_DECLS
#endif /* HDY_DIALER_CYCLE_BUTTON_H */
......@@ -4,8 +4,7 @@
* SPDX-License-Identifier: LGPL-2.1+
*/
#ifndef HDY_DIALER_H
#define HDY_DIALER_H
#pragma once
#if !defined(_HANDY_INSIDE) && !defined(HANDY_COMPILATION)
#error "Only <handy.h> can be included directly."
......@@ -49,5 +48,3 @@ void hdy_dialer_set_relief (HdyDialer *self,
GtkReliefStyle relief);
G_END_DECLS
#endif /* HDY_DIALER_H */
/*** BEGIN file-header ***/
#ifndef HDY_ENUMS_H
#define HDY_ENUMS_H
#pragma once
#if !defined(_HANDY_INSIDE) && !defined(HANDY_COMPILATION)
#error "Only <handy.h> can be included directly."
......@@ -23,6 +22,4 @@ GType @enum_name@_get_type (void);
/*** BEGIN file-tail ***/
G_END_DECLS
#endif /* DZL_ENUMS_H */
/*** END file-tail ***/
......@@ -4,8 +4,7 @@
* SPDX-License-Identifier: LGPL-2.1+
*/
#ifndef HDY_FOLD_H
#define HDY_FOLD_H
#pragma once
#if !defined(_HANDY_INSIDE) && !defined(HANDY_COMPILATION)
#error "Only <handy.h> can be included directly."
......@@ -22,5 +21,3 @@ typedef enum {
} HdyFold;
G_END_DECLS
#endif /* HDY_FOLD_H */
......@@ -4,8 +4,7 @@
* SPDX-License-Identifier: LGPL-2.1+
*/
#ifndef HDY_HEADER_GROUP_H
#define HDY_HEADER_GROUP_H
#pragma once
#if !defined(_HANDY_INSIDE) && !defined(HANDY_COMPILATION)
#error "Only <handy.h> can be included directly."
......@@ -42,5 +41,3 @@ void hdy_header_group_remove_header_bar (HdyHeaderGroup *self,
G_END_DECLS
#endif /* HDY_HEADER_GROUP_H */
......@@ -4,8 +4,7 @@
* SPDX-License-Identifier: LGPL-2.1+
*/
#ifndef HDY_LEAFLET_H
#define HDY_LEAFLET_H
#pragma once
#if !defined(_HANDY_INSIDE) && !defined(HANDY_COMPILATION)
#error "Only <handy.h> can be included directly."
......@@ -81,5 +80,3 @@ void hdy_leaflet_set_interpolate_size (HdyLeaflet *self,
gboolean interpolate_size);
G_END_DECLS
#endif /* HDY_LEAFLET_H */
......@@ -4,8 +4,7 @@
* SPDX-License-Identifier: LGPL-2.1+
*/
#ifndef HDY_STRING_UTF8_H
#define HDY_STRING_UTF8_H
#pragma once
#if !defined(_HANDY_INSIDE) && !defined(HANDY_COMPILATION)
#error "Only <handy.h> can be included directly."
......@@ -18,5 +17,3 @@ GString* hdy_string_utf8_truncate (GString *string,
glong hdy_string_utf8_len (GString *string);
G_END_DECLS
#endif /* HDY_STRING_UTF8 */
......@@ -4,8 +4,7 @@
* SPDX-License-Identifier: LGPL-2.1+
*/
#ifndef HDY_VERSION_H
#define HDY_VERSION_H
#pragma once
#if !defined(_HANDY_INSIDE) && !defined(HANDY_COMPILATION)
#error "Only <handy.h> can be included directly."
......@@ -80,5 +79,3 @@
(HDY_MAJOR_VERSION == (major) && HDY_MINOR_VERSION > (minor)) || \
(HDY_MAJOR_VERSION == (major) && HDY_MINOR_VERSION == (minor) && \
HDY_MICRO_VERSION >= (micro)))
#endif /* HDY_VERSION_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment