[gtksourceview/wip/gsv-4] Replace #warning by #error pre-processor messages
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/gsv-4] Replace #warning by #error pre-processor messages
- Date: Fri, 4 Nov 2016 21:49:18 +0000 (UTC)
commit b84a09e33f754c2f46090c3cbaedef794df4bce7
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Nov 4 22:45:25 2016 +0100
Replace #warning by #error pre-processor messages
gtksourceview/Makefile.am | 6 +-----
.../words/gtksourcecompletionwords.h | 6 +-----
gtksourceview/gtksourceautocleanups.h | 6 +-----
gtksourceview/gtksourcebuffer.h | 6 +-----
gtksourceview/gtksourcecompletion.h | 6 +-----
gtksourceview/gtksourcecompletioncontext.h | 6 +-----
gtksourceview/gtksourcecompletioninfo.h | 6 +-----
gtksourceview/gtksourcecompletionitem.h | 6 +-----
gtksourceview/gtksourcecompletionproposal.h | 6 +-----
gtksourceview/gtksourcecompletionprovider.h | 6 +-----
gtksourceview/gtksourceencoding.h | 6 +-----
gtksourceview/gtksourcefile.h | 6 +-----
gtksourceview/gtksourcefileloader.h | 6 +-----
gtksourceview/gtksourcefilesaver.h | 6 +-----
gtksourceview/gtksourcegutter.h | 6 +-----
gtksourceview/gtksourcegutterrenderer.h | 6 +-----
gtksourceview/gtksourcegutterrendererpixbuf.h | 6 +-----
gtksourceview/gtksourcegutterrenderertext.h | 6 +-----
gtksourceview/gtksourcelanguage.h | 6 +-----
gtksourceview/gtksourcelanguagemanager.h | 6 +-----
gtksourceview/gtksourcemap.h | 6 +-----
gtksourceview/gtksourcemark.h | 6 +-----
gtksourceview/gtksourcemarkattributes.h | 6 +-----
gtksourceview/gtksourceprintcompositor.h | 6 +-----
gtksourceview/gtksourceregion.h | 6 +-----
gtksourceview/gtksourcesearchcontext.h | 6 +-----
gtksourceview/gtksourcesearchsettings.h | 6 +-----
gtksourceview/gtksourcespacedrawer.h | 6 +-----
gtksourceview/gtksourcestyle.h | 6 +-----
gtksourceview/gtksourcestylescheme.h | 6 +-----
gtksourceview/gtksourcestyleschemechooser.h | 6 +-----
gtksourceview/gtksourcestyleschemechooserbutton.h | 6 +-----
gtksourceview/gtksourcestyleschemechooserwidget.h | 6 +-----
gtksourceview/gtksourcestyleschememanager.h | 6 +-----
gtksourceview/gtksourcetag.h | 6 +-----
gtksourceview/gtksourcetypes.h | 6 +-----
gtksourceview/gtksourceundomanager.h | 6 +-----
gtksourceview/gtksourceutils.h | 6 +-----
gtksourceview/gtksourceview.h | 6 +-----
39 files changed, 39 insertions(+), 195 deletions(-)
---
diff --git a/gtksourceview/Makefile.am b/gtksourceview/Makefile.am
index a43d2e1..8c4740b 100644
--- a/gtksourceview/Makefile.am
+++ b/gtksourceview/Makefile.am
@@ -240,11 +240,7 @@ stamp-gtksourceview-enumtypes.h: Makefile.am $(libgtksourceview_public_headers)
--fhead "#ifndef GTKSOURCEVIEW_ENUMTYPES_H\n" \
--fhead "#define GTKSOURCEVIEW_ENUMTYPES_H\n\n" \
--fhead "#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)\n" \
- --fhead "# if defined (__GNUC__)\n" \
- --fhead "# warning \"Only <gtksourceview/gtksource.h> can be included
directly.\"\n" \
- --fhead "# elif defined (G_OS_WIN32)\n" \
- --fhead "# pragma message(\"Only <gtksourceview/gtksource.h> can be included
directly.\")\n" \
- --fhead "# endif\n" \
+ --fhead "#error \"Only <gtksourceview/gtksource.h> can be included directly.\"\n" \
--fhead "#endif\n\n" \
--ftail "#endif /* GTKSOURCEVIEW_ENUMTYPES_H */\n" \
--fprod "#include <gtksourceview/@filename@>\n" \
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwords.h
b/gtksourceview/completion-providers/words/gtksourcecompletionwords.h
index c908c1a..25dcad7 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwords.h
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwords.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_COMPLETION_WORDS_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtksourceview/gtksourcecompletionprovider.h>
diff --git a/gtksourceview/gtksourceautocleanups.h b/gtksourceview/gtksourceautocleanups.h
index bc5ebc6..6a735b1 100644
--- a/gtksourceview/gtksourceautocleanups.h
+++ b/gtksourceview/gtksourceautocleanups.h
@@ -20,11 +20,7 @@
#define GTK_SOURCE_AUTOCLEANUPS_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <glib.h>
diff --git a/gtksourceview/gtksourcebuffer.h b/gtksourceview/gtksourcebuffer.h
index a943257..577957c 100644
--- a/gtksourceview/gtksourcebuffer.h
+++ b/gtksourceview/gtksourcebuffer.h
@@ -27,11 +27,7 @@
#define GTK_SOURCE_BUFFER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcecompletion.h b/gtksourceview/gtksourcecompletion.h
index 6b377b4..bf02d97 100644
--- a/gtksourceview/gtksourcecompletion.h
+++ b/gtksourceview/gtksourcecompletion.h
@@ -24,11 +24,7 @@
#define GTK_SOURCE_COMPLETION_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcecompletioncontext.h b/gtksourceview/gtksourcecompletioncontext.h
index 053704d..f6a1899 100644
--- a/gtksourceview/gtksourcecompletioncontext.h
+++ b/gtksourceview/gtksourcecompletioncontext.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_COMPLETION_CONTEXT_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcecompletioninfo.h b/gtksourceview/gtksourcecompletioninfo.h
index 228cb30..e5fc8f9 100644
--- a/gtksourceview/gtksourcecompletioninfo.h
+++ b/gtksourceview/gtksourcecompletioninfo.h
@@ -24,11 +24,7 @@
#define GTK_SOURCE_COMPLETION_INFO_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcecompletionitem.h b/gtksourceview/gtksourcecompletionitem.h
index d05efdc..87647f7 100644
--- a/gtksourceview/gtksourcecompletionitem.h
+++ b/gtksourceview/gtksourcecompletionitem.h
@@ -24,11 +24,7 @@
#define GTK_SOURCE_COMPLETION_ITEM_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcecompletionproposal.h b/gtksourceview/gtksourcecompletionproposal.h
index c9cab6e..80a893e 100644
--- a/gtksourceview/gtksourcecompletionproposal.h
+++ b/gtksourceview/gtksourcecompletionproposal.h
@@ -24,11 +24,7 @@
#define GTK_SOURCE_COMPLETION_PROPOSAL_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <glib-object.h>
diff --git a/gtksourceview/gtksourcecompletionprovider.h b/gtksourceview/gtksourcecompletionprovider.h
index 1608ad5..ea2bda8 100644
--- a/gtksourceview/gtksourcecompletionprovider.h
+++ b/gtksourceview/gtksourcecompletionprovider.h
@@ -24,11 +24,7 @@
#define GTK_SOURCE_COMPLETION_PROVIDER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourceencoding.h b/gtksourceview/gtksourceencoding.h
index 67a49f0..104d1fb 100644
--- a/gtksourceview/gtksourceencoding.h
+++ b/gtksourceview/gtksourceencoding.h
@@ -24,11 +24,7 @@
#define GTK_SOURCE_ENCODING_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <glib.h>
diff --git a/gtksourceview/gtksourcefile.h b/gtksourceview/gtksourcefile.h
index 47b6bc6..03d990c 100644
--- a/gtksourceview/gtksourcefile.h
+++ b/gtksourceview/gtksourcefile.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_FILE_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcefileloader.h b/gtksourceview/gtksourcefileloader.h
index 79ec902..6b9eb10 100644
--- a/gtksourceview/gtksourcefileloader.h
+++ b/gtksourceview/gtksourcefileloader.h
@@ -26,11 +26,7 @@
#define GTK_SOURCE_FILE_LOADER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcefilesaver.h b/gtksourceview/gtksourcefilesaver.h
index ccc51fa..2464e85 100644
--- a/gtksourceview/gtksourcefilesaver.h
+++ b/gtksourceview/gtksourcefilesaver.h
@@ -26,11 +26,7 @@
#define GTK_SOURCE_FILE_SAVER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcegutter.h b/gtksourceview/gtksourcegutter.h
index 4b5b493..728285d 100644
--- a/gtksourceview/gtksourcegutter.h
+++ b/gtksourceview/gtksourcegutter.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_GUTTER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcegutterrenderer.h b/gtksourceview/gtksourcegutterrenderer.h
index 12454fe..54187b5 100644
--- a/gtksourceview/gtksourcegutterrenderer.h
+++ b/gtksourceview/gtksourcegutterrenderer.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_GUTTER_RENDERER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcegutterrendererpixbuf.h b/gtksourceview/gtksourcegutterrendererpixbuf.h
index 805cd96..66b57ec 100644
--- a/gtksourceview/gtksourcegutterrendererpixbuf.h
+++ b/gtksourceview/gtksourcegutterrendererpixbuf.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_GUTTER_RENDERER_PIXBUF_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtksourceview/gtksourcetypes.h>
diff --git a/gtksourceview/gtksourcegutterrenderertext.h b/gtksourceview/gtksourcegutterrenderertext.h
index b5e9cf4..f03a017 100644
--- a/gtksourceview/gtksourcegutterrenderertext.h
+++ b/gtksourceview/gtksourcegutterrenderertext.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_GUTTER_RENDERER_TEXT_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtksourceview/gtksourcetypes.h>
diff --git a/gtksourceview/gtksourcelanguage.h b/gtksourceview/gtksourcelanguage.h
index b84d323..a0f8434 100644
--- a/gtksourceview/gtksourcelanguage.h
+++ b/gtksourceview/gtksourcelanguage.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_LANGUAGE_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcelanguagemanager.h b/gtksourceview/gtksourcelanguagemanager.h
index 71ce257..be09925 100644
--- a/gtksourceview/gtksourcelanguagemanager.h
+++ b/gtksourceview/gtksourcelanguagemanager.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_LANGUAGE_MANAGER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <glib-object.h>
diff --git a/gtksourceview/gtksourcemap.h b/gtksourceview/gtksourcemap.h
index 269ab85..525ec39 100644
--- a/gtksourceview/gtksourcemap.h
+++ b/gtksourceview/gtksourcemap.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_MAP_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcemark.h b/gtksourceview/gtksourcemark.h
index 2a1f93e..fd2e940 100644
--- a/gtksourceview/gtksourcemark.h
+++ b/gtksourceview/gtksourcemark.h
@@ -23,11 +23,7 @@
#define GTKSOURCEMARK_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcemarkattributes.h b/gtksourceview/gtksourcemarkattributes.h
index 99a36c8..ca0ed46 100644
--- a/gtksourceview/gtksourcemarkattributes.h
+++ b/gtksourceview/gtksourcemarkattributes.h
@@ -24,11 +24,7 @@
#define GTK_SOURCE_MARK_ATTRIBUTES_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourceprintcompositor.h b/gtksourceview/gtksourceprintcompositor.h
index e1ee7fa..0127d1b 100644
--- a/gtksourceview/gtksourceprintcompositor.h
+++ b/gtksourceview/gtksourceprintcompositor.h
@@ -24,11 +24,7 @@
#define GTK_SOURCE_PRINT_COMPOSITOR_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourceregion.h b/gtksourceview/gtksourceregion.h
index a2c935f..d10c871 100644
--- a/gtksourceview/gtksourceregion.h
+++ b/gtksourceview/gtksourceregion.h
@@ -24,11 +24,7 @@
#define GTK_SOURCE_REGION_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcesearchcontext.h b/gtksourceview/gtksourcesearchcontext.h
index ce1a8de..3dac463 100644
--- a/gtksourceview/gtksourcesearchcontext.h
+++ b/gtksourceview/gtksourcesearchcontext.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_SEARCH_CONTEXT_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcesearchsettings.h b/gtksourceview/gtksourcesearchsettings.h
index fb38c14..5447e7d 100644
--- a/gtksourceview/gtksourcesearchsettings.h
+++ b/gtksourceview/gtksourcesearchsettings.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_SEARCH_SETTINGS_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <glib-object.h>
diff --git a/gtksourceview/gtksourcespacedrawer.h b/gtksourceview/gtksourcespacedrawer.h
index 7517a41..02d801d 100644
--- a/gtksourceview/gtksourcespacedrawer.h
+++ b/gtksourceview/gtksourcespacedrawer.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_SPACE_DRAWER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcestyle.h b/gtksourceview/gtksourcestyle.h
index 6600b45..752571c 100644
--- a/gtksourceview/gtksourcestyle.h
+++ b/gtksourceview/gtksourcestyle.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_STYLE_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcestylescheme.h b/gtksourceview/gtksourcestylescheme.h
index b6c5656..454a582 100644
--- a/gtksourceview/gtksourcestylescheme.h
+++ b/gtksourceview/gtksourcestylescheme.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_STYLE_SCHEME_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcestyleschemechooser.h b/gtksourceview/gtksourcestyleschemechooser.h
index de4eabc..c32d417 100644
--- a/gtksourceview/gtksourcestyleschemechooser.h
+++ b/gtksourceview/gtksourcestyleschemechooser.h
@@ -22,11 +22,7 @@
#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <glib-object.h>
diff --git a/gtksourceview/gtksourcestyleschemechooserbutton.h
b/gtksourceview/gtksourcestyleschemechooserbutton.h
index cbe246d..80fa83c 100644
--- a/gtksourceview/gtksourcestyleschemechooserbutton.h
+++ b/gtksourceview/gtksourcestyleschemechooserbutton.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_BUTTON_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcestyleschemechooserwidget.h
b/gtksourceview/gtksourcestyleschemechooserwidget.h
index fbddc9e..9fe6949 100644
--- a/gtksourceview/gtksourcestyleschemechooserwidget.h
+++ b/gtksourceview/gtksourcestyleschemechooserwidget.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_WIDGET_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcestyleschememanager.h b/gtksourceview/gtksourcestyleschememanager.h
index f0225ea..966d9a1 100644
--- a/gtksourceview/gtksourcestyleschememanager.h
+++ b/gtksourceview/gtksourcestyleschememanager.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_STYLE_SCHEME_MANAGER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <glib-object.h>
diff --git a/gtksourceview/gtksourcetag.h b/gtksourceview/gtksourcetag.h
index 6d03a6c..bd0acb1 100644
--- a/gtksourceview/gtksourcetag.h
+++ b/gtksourceview/gtksourcetag.h
@@ -25,11 +25,7 @@
#define GTK_SOURCE_TAG_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcetypes.h b/gtksourceview/gtksourcetypes.h
index ddc7426..0907abd 100644
--- a/gtksourceview/gtksourcetypes.h
+++ b/gtksourceview/gtksourcetypes.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_TYPES_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <glib.h>
diff --git a/gtksourceview/gtksourceundomanager.h b/gtksourceview/gtksourceundomanager.h
index af8eb07..bacd71a 100644
--- a/gtksourceview/gtksourceundomanager.h
+++ b/gtksourceview/gtksourceundomanager.h
@@ -26,11 +26,7 @@
#define GTK_SOURCE_UNDO_MANAGER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourceutils.h b/gtksourceview/gtksourceutils.h
index e76410a..ab56e2d 100644
--- a/gtksourceview/gtksourceutils.h
+++ b/gtksourceview/gtksourceutils.h
@@ -23,11 +23,7 @@
#define GTK_SOURCE_UTILS_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <glib-object.h>
diff --git a/gtksourceview/gtksourceview.h b/gtksourceview/gtksourceview.h
index a89153b..27ac03d 100644
--- a/gtksourceview/gtksourceview.h
+++ b/gtksourceview/gtksourceview.h
@@ -25,11 +25,7 @@
#define GTK_SOURCE_VIEW_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-# if defined (__GNUC__)
-# warning "Only <gtksourceview/gtksource.h> can be included directly."
-# elif defined (G_OS_WIN32)
-# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
-# endif
+#error "Only <gtksourceview/gtksource.h> can be included directly."
#endif
#include <gtk/gtk.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]