[retro-gtk/c-port: 6/42] Add inclusion guards



commit 41207762563bac7282ea53cb832b8f8cc991bb10
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Fri Sep 29 08:18:18 2017 +0200

    Add inclusion guards

 retro-gtk/Makefile.am                    |    1 +
 retro-gtk/input/retro-keyboard-key.h     |    4 ++++
 retro-gtk/retro-core-view-input-device.h |    4 ++++
 retro-gtk/retro-core.h                   |    4 ++++
 retro-gtk/retro-disk-control-callback.h  |    4 ++++
 retro-gtk/retro-game-info.h              |    4 ++++
 retro-gtk/retro-module.h                 |    4 ++++
 retro-gtk/retro-option.h                 |    4 ++++
 retro-gtk/retro-options.h                |    4 ++++
 retro-gtk/retro-rotation.h               |    4 ++++
 retro-gtk/retro-system-av-info.h         |    4 ++++
 retro-gtk/retro-system-info.h            |    4 ++++
 retro-gtk/retro-variable.h               |    4 ++++
 13 files changed, 49 insertions(+), 0 deletions(-)
---
diff --git a/retro-gtk/Makefile.am b/retro-gtk/Makefile.am
index 7865ea4..78def85 100644
--- a/retro-gtk/Makefile.am
+++ b/retro-gtk/Makefile.am
@@ -4,6 +4,7 @@ NULL =
 
 AM_CPPFLAGS = \
        -DG_LOG_DOMAIN=\""Retro"\" \
+       -DRETRO_GTK_COMPILATION \
        -DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
        -DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
        -DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\" \
diff --git a/retro-gtk/input/retro-keyboard-key.h b/retro-gtk/input/retro-keyboard-key.h
index 92e6e06..04b1037 100644
--- a/retro-gtk/input/retro-keyboard-key.h
+++ b/retro-gtk/input/retro-keyboard-key.h
@@ -3,6 +3,10 @@
 #ifndef RETRO_KEYBOARD_KEY_H
 #define RETRO_KEYBOARD_KEY_H
 
+#if !defined(__RETRO_GTK_INSIDE__) && !defined(RETRO_GTK_COMPILATION)
+# error "Only <retro-gtk.h> can be included directly."
+#endif
+
 #include <gdk/gdk.h>
 
 G_BEGIN_DECLS
diff --git a/retro-gtk/retro-core-view-input-device.h b/retro-gtk/retro-core-view-input-device.h
index cae68fb..faa3036 100644
--- a/retro-gtk/retro-core-view-input-device.h
+++ b/retro-gtk/retro-core-view-input-device.h
@@ -3,6 +3,10 @@
 #ifndef RETRO_CORE_VIEW_INPUT_DEVICE_H
 #define RETRO_CORE_VIEW_INPUT_DEVICE_H
 
+#if !defined(__RETRO_GTK_INSIDE__) && !defined(RETRO_GTK_COMPILATION)
+# error "Only <retro-gtk.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 #include "retro-gtk-internal.h"
 
diff --git a/retro-gtk/retro-core.h b/retro-gtk/retro-core.h
index b5c9369..f22e11a 100644
--- a/retro-gtk/retro-core.h
+++ b/retro-gtk/retro-core.h
@@ -3,6 +3,10 @@
 #ifndef RETRO_CORE_H
 #define RETRO_CORE_H
 
+#if !defined(__RETRO_GTK_INSIDE__) && !defined(RETRO_GTK_COMPILATION)
+# error "Only <retro-gtk.h> can be included directly."
+#endif
+
 #include "retro-disk-control-callback.h"
 #include "retro-gtk-internal.h"
 #include "retro-module.h"
diff --git a/retro-gtk/retro-disk-control-callback.h b/retro-gtk/retro-disk-control-callback.h
index 6abefd1..c5afb97 100644
--- a/retro-gtk/retro-disk-control-callback.h
+++ b/retro-gtk/retro-disk-control-callback.h
@@ -3,6 +3,10 @@
 #ifndef RETRO_DISK_CONTROL_CALLBACK_H
 #define RETRO_DISK_CONTROL_CALLBACK_H
 
+#if !defined(__RETRO_GTK_INSIDE__) && !defined(RETRO_GTK_COMPILATION)
+# error "Only <retro-gtk.h> can be included directly."
+#endif
+
 #include "retro-game-info.h"
 
 G_BEGIN_DECLS
diff --git a/retro-gtk/retro-game-info.h b/retro-gtk/retro-game-info.h
index bbd43fa..820b5f0 100644
--- a/retro-gtk/retro-game-info.h
+++ b/retro-gtk/retro-game-info.h
@@ -3,6 +3,10 @@
 #ifndef RETRO_GAME_INFO_H
 #define RETRO_GAME_INFO_H
 
+#if !defined(__RETRO_GTK_INSIDE__) && !defined(RETRO_GTK_COMPILATION)
+# error "Only <retro-gtk.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 
 G_BEGIN_DECLS
diff --git a/retro-gtk/retro-module.h b/retro-gtk/retro-module.h
index 1041126..e148890 100644
--- a/retro-gtk/retro-module.h
+++ b/retro-gtk/retro-module.h
@@ -3,6 +3,10 @@
 #ifndef RETRO_MODULE_H
 #define RETRO_MODULE_H
 
+#if !defined(__RETRO_GTK_INSIDE__) && !defined(RETRO_GTK_COMPILATION)
+# error "Only <retro-gtk.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 #include "retro-gtk-internal.h"
 #include "retro-game-info.h"
diff --git a/retro-gtk/retro-option.h b/retro-gtk/retro-option.h
index b49ca09..38f650d 100644
--- a/retro-gtk/retro-option.h
+++ b/retro-gtk/retro-option.h
@@ -3,6 +3,10 @@
 #ifndef RETRO_OPTION_H
 #define RETRO_OPTION_H
 
+#if !defined(__RETRO_GTK_INSIDE__) && !defined(RETRO_GTK_COMPILATION)
+# error "Only <retro-gtk.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 #include "retro-variable.h"
 
diff --git a/retro-gtk/retro-options.h b/retro-gtk/retro-options.h
index e4c1d2e..af7452b 100644
--- a/retro-gtk/retro-options.h
+++ b/retro-gtk/retro-options.h
@@ -3,6 +3,10 @@
 #ifndef RETRO_OPTIONS_H
 #define RETRO_OPTIONS_H
 
+#if !defined(__RETRO_GTK_INSIDE__) && !defined(RETRO_GTK_COMPILATION)
+# error "Only <retro-gtk.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 #include "retro-variable.h"
 
diff --git a/retro-gtk/retro-rotation.h b/retro-gtk/retro-rotation.h
index cf840b0..f1aff32 100644
--- a/retro-gtk/retro-rotation.h
+++ b/retro-gtk/retro-rotation.h
@@ -3,6 +3,10 @@
 #ifndef RETRO_ROTATION_H
 #define RETRO_ROTATION_H
 
+#if !defined(__RETRO_GTK_INSIDE__) && !defined(RETRO_GTK_COMPILATION)
+# error "Only <retro-gtk.h> can be included directly."
+#endif
+
 #include <glib.h>
 
 G_BEGIN_DECLS
diff --git a/retro-gtk/retro-system-av-info.h b/retro-gtk/retro-system-av-info.h
index 9419cdd..1ef4bf8 100644
--- a/retro-gtk/retro-system-av-info.h
+++ b/retro-gtk/retro-system-av-info.h
@@ -3,6 +3,10 @@
 #ifndef RETRO_SYSTEM_AV_INFO_H
 #define RETRO_SYSTEM_AV_INFO_H
 
+#if !defined(__RETRO_GTK_INSIDE__) && !defined(RETRO_GTK_COMPILATION)
+# error "Only <retro-gtk.h> can be included directly."
+#endif
+
 #include <glib.h>
 
 G_BEGIN_DECLS
diff --git a/retro-gtk/retro-system-info.h b/retro-gtk/retro-system-info.h
index b4aec77..cdef34b 100644
--- a/retro-gtk/retro-system-info.h
+++ b/retro-gtk/retro-system-info.h
@@ -3,6 +3,10 @@
 #ifndef RETRO_SYSTEM_INFO_H
 #define RETRO_SYSTEM_INFO_H
 
+#if !defined(__RETRO_GTK_INSIDE__) && !defined(RETRO_GTK_COMPILATION)
+# error "Only <retro-gtk.h> can be included directly."
+#endif
+
 #include <glib.h>
 
 G_BEGIN_DECLS
diff --git a/retro-gtk/retro-variable.h b/retro-gtk/retro-variable.h
index bd569de..6b66735 100644
--- a/retro-gtk/retro-variable.h
+++ b/retro-gtk/retro-variable.h
@@ -3,6 +3,10 @@
 #ifndef RETRO_VARIABLE_H
 #define RETRO_VARIABLE_H
 
+#if !defined(__RETRO_GTK_INSIDE__) && !defined(RETRO_GTK_COMPILATION)
+# error "Only <retro-gtk.h> can be included directly."
+#endif
+
 #include <glib.h>
 
 G_BEGIN_DECLS


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