[gtksourceview] Use #warning only with GNUC and use a pragma message on win32
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Use #warning only with GNUC and use a pragma message on win32
- Date: Fri, 24 Jun 2016 21:48:53 +0000 (UTC)
commit 9c48f5cb06b1937dc1aabf2e26fd03bccced5a24
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Jun 24 23:40:04 2016 +0200
Use #warning only with GNUC and use a pragma message on win32
#warning is not standard, apparently.
GLib surrounds #warning with #ifdef __GNUC__/#endif.
And follow:
https://en.wikipedia.org/wiki/C_preprocessor
for windows.
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/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 +++++-
36 files changed, 180 insertions(+), 36 deletions(-)
---
diff --git a/gtksourceview/gtksourceautocleanups.h b/gtksourceview/gtksourceautocleanups.h
index 0550083..a4ebda2 100644
--- a/gtksourceview/gtksourceautocleanups.h
+++ b/gtksourceview/gtksourceautocleanups.h
@@ -20,7 +20,11 @@
#define GTK_SOURCE_AUTOCLEANUPS_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#ifndef __GI_SCANNER__
diff --git a/gtksourceview/gtksourcebuffer.h b/gtksourceview/gtksourcebuffer.h
index 2ca0ab4..fdcfc8b 100644
--- a/gtksourceview/gtksourcebuffer.h
+++ b/gtksourceview/gtksourcebuffer.h
@@ -27,7 +27,11 @@
#define GTK_SOURCE_BUFFER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcecompletion.h b/gtksourceview/gtksourcecompletion.h
index 923f79a..87b4228 100644
--- a/gtksourceview/gtksourcecompletion.h
+++ b/gtksourceview/gtksourcecompletion.h
@@ -24,7 +24,11 @@
#define GTK_SOURCE_COMPLETION_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcecompletioncontext.h b/gtksourceview/gtksourcecompletioncontext.h
index bea7bf2..42b7ffa 100644
--- a/gtksourceview/gtksourcecompletioncontext.h
+++ b/gtksourceview/gtksourcecompletioncontext.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_COMPLETION_CONTEXT_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcecompletioninfo.h b/gtksourceview/gtksourcecompletioninfo.h
index adb0be3..7ae9fc4 100644
--- a/gtksourceview/gtksourcecompletioninfo.h
+++ b/gtksourceview/gtksourcecompletioninfo.h
@@ -24,7 +24,11 @@
#define GTK_SOURCE_COMPLETION_INFO_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcecompletionitem.h b/gtksourceview/gtksourcecompletionitem.h
index 691bb8b..5ccd425 100644
--- a/gtksourceview/gtksourcecompletionitem.h
+++ b/gtksourceview/gtksourcecompletionitem.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_COMPLETION_ITEM_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcecompletionproposal.h b/gtksourceview/gtksourcecompletionproposal.h
index f35497e..c9cab6e 100644
--- a/gtksourceview/gtksourcecompletionproposal.h
+++ b/gtksourceview/gtksourcecompletionproposal.h
@@ -24,7 +24,11 @@
#define GTK_SOURCE_COMPLETION_PROPOSAL_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <glib-object.h>
diff --git a/gtksourceview/gtksourcecompletionprovider.h b/gtksourceview/gtksourcecompletionprovider.h
index a777217..1608ad5 100644
--- a/gtksourceview/gtksourcecompletionprovider.h
+++ b/gtksourceview/gtksourcecompletionprovider.h
@@ -24,7 +24,11 @@
#define GTK_SOURCE_COMPLETION_PROVIDER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourceencoding.h b/gtksourceview/gtksourceencoding.h
index c0b985d..67a49f0 100644
--- a/gtksourceview/gtksourceencoding.h
+++ b/gtksourceview/gtksourceencoding.h
@@ -24,7 +24,11 @@
#define GTK_SOURCE_ENCODING_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <glib.h>
diff --git a/gtksourceview/gtksourcefile.h b/gtksourceview/gtksourcefile.h
index 95b2357..aae20f7 100644
--- a/gtksourceview/gtksourcefile.h
+++ b/gtksourceview/gtksourcefile.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_FILE_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcefileloader.h b/gtksourceview/gtksourcefileloader.h
index 097f529..ad2c08a 100644
--- a/gtksourceview/gtksourcefileloader.h
+++ b/gtksourceview/gtksourcefileloader.h
@@ -26,7 +26,11 @@
#define GTK_SOURCE_FILE_LOADER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcefilesaver.h b/gtksourceview/gtksourcefilesaver.h
index e788bd7..01b8d37 100644
--- a/gtksourceview/gtksourcefilesaver.h
+++ b/gtksourceview/gtksourcefilesaver.h
@@ -26,7 +26,11 @@
#define GTK_SOURCE_FILE_SAVER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcegutter.h b/gtksourceview/gtksourcegutter.h
index 1d6d675..3c00f9e 100644
--- a/gtksourceview/gtksourcegutter.h
+++ b/gtksourceview/gtksourcegutter.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_GUTTER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcegutterrenderer.h b/gtksourceview/gtksourcegutterrenderer.h
index b6a0a5b..5169303 100644
--- a/gtksourceview/gtksourcegutterrenderer.h
+++ b/gtksourceview/gtksourcegutterrenderer.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_GUTTER_RENDERER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcegutterrendererpixbuf.h b/gtksourceview/gtksourcegutterrendererpixbuf.h
index bffee65..174c818 100644
--- a/gtksourceview/gtksourcegutterrendererpixbuf.h
+++ b/gtksourceview/gtksourcegutterrendererpixbuf.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_GUTTER_RENDERER_PIXBUF_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtksourceview/gtksourcetypes.h>
diff --git a/gtksourceview/gtksourcegutterrenderertext.h b/gtksourceview/gtksourcegutterrenderertext.h
index c291a29..b5e9cf4 100644
--- a/gtksourceview/gtksourcegutterrenderertext.h
+++ b/gtksourceview/gtksourcegutterrenderertext.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_GUTTER_RENDERER_TEXT_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtksourceview/gtksourcetypes.h>
diff --git a/gtksourceview/gtksourcelanguage.h b/gtksourceview/gtksourcelanguage.h
index c259398..b84d323 100644
--- a/gtksourceview/gtksourcelanguage.h
+++ b/gtksourceview/gtksourcelanguage.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_LANGUAGE_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcelanguagemanager.h b/gtksourceview/gtksourcelanguagemanager.h
index c5337ad..5a3e5da 100644
--- a/gtksourceview/gtksourcelanguagemanager.h
+++ b/gtksourceview/gtksourcelanguagemanager.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_LANGUAGE_MANAGER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtksourceview/gtksourcetypes.h>
diff --git a/gtksourceview/gtksourcemap.h b/gtksourceview/gtksourcemap.h
index 6c09c18..6fc0a88 100644
--- a/gtksourceview/gtksourcemap.h
+++ b/gtksourceview/gtksourcemap.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_MAP_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcemark.h b/gtksourceview/gtksourcemark.h
index 5ea1f30..2a1f93e 100644
--- a/gtksourceview/gtksourcemark.h
+++ b/gtksourceview/gtksourcemark.h
@@ -23,7 +23,11 @@
#define GTKSOURCEMARK_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcemarkattributes.h b/gtksourceview/gtksourcemarkattributes.h
index 872fe55..32a3f36 100644
--- a/gtksourceview/gtksourcemarkattributes.h
+++ b/gtksourceview/gtksourcemarkattributes.h
@@ -24,7 +24,11 @@
#define GTK_SOURCE_MARK_ATTRIBUTES_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourceprintcompositor.h b/gtksourceview/gtksourceprintcompositor.h
index 41870eb..e1ee7fa 100644
--- a/gtksourceview/gtksourceprintcompositor.h
+++ b/gtksourceview/gtksourceprintcompositor.h
@@ -24,7 +24,11 @@
#define GTK_SOURCE_PRINT_COMPOSITOR_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourceregion.h b/gtksourceview/gtksourceregion.h
index 6ec9f3a..6d3601a 100644
--- a/gtksourceview/gtksourceregion.h
+++ b/gtksourceview/gtksourceregion.h
@@ -24,7 +24,11 @@
#define GTK_SOURCE_REGION_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcesearchcontext.h b/gtksourceview/gtksourcesearchcontext.h
index 873fc3f..851676f 100644
--- a/gtksourceview/gtksourcesearchcontext.h
+++ b/gtksourceview/gtksourcesearchcontext.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_SEARCH_CONTEXT_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcesearchsettings.h b/gtksourceview/gtksourcesearchsettings.h
index a0e9012..fb38c14 100644
--- a/gtksourceview/gtksourcesearchsettings.h
+++ b/gtksourceview/gtksourcesearchsettings.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_SEARCH_SETTINGS_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <glib-object.h>
diff --git a/gtksourceview/gtksourcestyle.h b/gtksourceview/gtksourcestyle.h
index 3a952a8..6600b45 100644
--- a/gtksourceview/gtksourcestyle.h
+++ b/gtksourceview/gtksourcestyle.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_STYLE_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcestylescheme.h b/gtksourceview/gtksourcestylescheme.h
index 18134df..b6c5656 100644
--- a/gtksourceview/gtksourcestylescheme.h
+++ b/gtksourceview/gtksourcestylescheme.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_STYLE_SCHEME_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcestyleschemechooser.h b/gtksourceview/gtksourcestyleschemechooser.h
index d757c13..32cfb9a 100644
--- a/gtksourceview/gtksourcestyleschemechooser.h
+++ b/gtksourceview/gtksourcestyleschemechooser.h
@@ -22,7 +22,11 @@
#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtksourceview/gtksourcetypes.h>
diff --git a/gtksourceview/gtksourcestyleschemechooserbutton.h
b/gtksourceview/gtksourcestyleschemechooserbutton.h
index 3f106df..0f872a8 100644
--- a/gtksourceview/gtksourcestyleschemechooserbutton.h
+++ b/gtksourceview/gtksourcestyleschemechooserbutton.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_BUTTON_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcestyleschemechooserwidget.h
b/gtksourceview/gtksourcestyleschemechooserwidget.h
index e6f97b4..1c3c168 100644
--- a/gtksourceview/gtksourcestyleschemechooserwidget.h
+++ b/gtksourceview/gtksourcestyleschemechooserwidget.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_WIDGET_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcestyleschememanager.h b/gtksourceview/gtksourcestyleschememanager.h
index a67f067..ed35d0a 100644
--- a/gtksourceview/gtksourcestyleschememanager.h
+++ b/gtksourceview/gtksourcestyleschememanager.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_STYLE_SCHEME_MANAGER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <glib-object.h>
diff --git a/gtksourceview/gtksourcetag.h b/gtksourceview/gtksourcetag.h
index 0678bb7..6d03a6c 100644
--- a/gtksourceview/gtksourcetag.h
+++ b/gtksourceview/gtksourcetag.h
@@ -25,7 +25,11 @@
#define GTK_SOURCE_TAG_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourcetypes.h b/gtksourceview/gtksourcetypes.h
index 7c1ff8d..28277c2 100644
--- a/gtksourceview/gtksourcetypes.h
+++ b/gtksourceview/gtksourcetypes.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_TYPES_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gio/gio.h>
diff --git a/gtksourceview/gtksourceundomanager.h b/gtksourceview/gtksourceundomanager.h
index c335793..af8eb07 100644
--- a/gtksourceview/gtksourceundomanager.h
+++ b/gtksourceview/gtksourceundomanager.h
@@ -26,7 +26,11 @@
#define GTK_SOURCE_UNDO_MANAGER_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
diff --git a/gtksourceview/gtksourceutils.h b/gtksourceview/gtksourceutils.h
index 57817e8..e76410a 100644
--- a/gtksourceview/gtksourceutils.h
+++ b/gtksourceview/gtksourceutils.h
@@ -23,7 +23,11 @@
#define GTK_SOURCE_UTILS_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <glib-object.h>
diff --git a/gtksourceview/gtksourceview.h b/gtksourceview/gtksourceview.h
index 7209d59..2321015 100644
--- a/gtksourceview/gtksourceview.h
+++ b/gtksourceview/gtksourceview.h
@@ -25,7 +25,11 @@
#define GTK_SOURCE_VIEW_H
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
-#warning "Only <gtksourceview/gtksource.h> can be included directly."
+# 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
#endif
#include <gtk/gtk.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]