[eog/friemann/krifa75-pragma-once: 13/35] EogImage*: Replace include guard with #pragma once




commit 687ab077c139ad327fc9dc9a9633db6fb5302e7d
Author: Krifa75 <yahiaoui fakhri gmail com>
Date:   Sat Jul 9 19:33:08 2022 +0200

    EogImage*: Replace include guard with #pragma once

 src/eog-image-jpeg.h      | 5 +----
 src/eog-image-private.h   | 5 +----
 src/eog-image-save-info.h | 5 +----
 src/eog-image.h           | 5 +----
 4 files changed, 4 insertions(+), 16 deletions(-)
---
diff --git a/src/eog-image-jpeg.h b/src/eog-image-jpeg.h
index 7e8d9164..a68bdfca 100644
--- a/src/eog-image-jpeg.h
+++ b/src/eog-image-jpeg.h
@@ -1,5 +1,4 @@
-#ifndef _EOG_IMAGE_JPEG_H_
-#define _EOG_IMAGE_JPEG_H_
+#pragma once
 
 #ifdef HAVE_JPEG
 
@@ -18,5 +17,3 @@ gboolean eog_image_jpeg_save_file (EogImage *image, const char *file,
                                   EogImageSaveInfo *source, EogImageSaveInfo *target,
                                   GError **error);
 #endif
-
-#endif /* _EOG_IMAGE_JPEG_H_ */
diff --git a/src/eog-image-private.h b/src/eog-image-private.h
index 1fc00fd3..d953c6af 100644
--- a/src/eog-image-private.h
+++ b/src/eog-image-private.h
@@ -19,8 +19,7 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 
-#ifndef __EOG_IMAGE_PRIVATE_H__
-#define __EOG_IMAGE_PRIVATE_H__
+#pragma once
 
 #include "eog-image.h"
 
@@ -100,5 +99,3 @@ struct _EogImagePrivate {
 };
 
 G_END_DECLS
-
-#endif /* __EOG_IMAGE_PRIVATE_H__ */
diff --git a/src/eog-image-save-info.h b/src/eog-image-save-info.h
index 33d6b27c..3498cd6d 100644
--- a/src/eog-image-save-info.h
+++ b/src/eog-image-save-info.h
@@ -1,5 +1,4 @@
-#ifndef _EOG_IMAGE_SAVE_INFO_H_
-#define _EOG_IMAGE_SAVE_INFO_H_
+#pragma once
 
 #include <glib-object.h>
 #include <gio/gio.h>
@@ -53,5 +52,3 @@ EogImageSaveInfo *eog_image_save_info_new_from_file    (GFile           *file,
                                                        GdkPixbufFormat *format);
 
 G_END_DECLS
-
-#endif /* _EOG_IMAGE_SAVE_INFO_H_ */
diff --git a/src/eog-image.h b/src/eog-image.h
index 45e7f939..9b95f204 100644
--- a/src/eog-image.h
+++ b/src/eog-image.h
@@ -19,8 +19,7 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 
-#ifndef __EOG_IMAGE_H__
-#define __EOG_IMAGE_H__
+#pragma once
 
 #include "eog-jobs.h"
 #include "eog-window.h"
@@ -224,5 +223,3 @@ gboolean          eog_image_is_file_writable         (EogImage *img);
 gboolean          eog_image_is_multipaged            (EogImage *img);
 
 G_END_DECLS
-
-#endif /* __EOG_IMAGE_H__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]