aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/ScintillaWidget.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-02-17 10:00:42 +0000
committernyamatongwe <unknown>2001-02-17 10:00:42 +0000
commit876968f47018a5fcdee2b7f323f2da1cab7c0746 (patch)
tree319b8b138be2a338246decd85e9243ff663f187d /include/ScintillaWidget.h
parent1b828b1c13d2bb1104619f5cd3730d21e3ef7060 (diff)
downloadscintilla-mirror-876968f47018a5fcdee2b7f323f2da1cab7c0746.tar.gz
If ScintillaWidget.h included without Scintilla.h already included display
a warning message and #include "Scintilla.h".
Diffstat (limited to 'include/ScintillaWidget.h')
-rw-r--r--include/ScintillaWidget.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/ScintillaWidget.h b/include/ScintillaWidget.h
index 9ac743573..2a7a02745 100644
--- a/include/ScintillaWidget.h
+++ b/include/ScintillaWidget.h
@@ -9,6 +9,17 @@
#if PLAT_GTK
+#ifndef SCINTILLA_H
+#ifdef _MSC_VER
+#pragma message(__FILE__ "(1) : warning : Scintilla.h should be included before ScintillaWidget.h")
+#pragma message("This will be required in the next version of Scintilla")
+#else
+#warning __FILE__:1: warning: Scintilla.h should be included before ScintillaWidget.h
+#warning This will be required in the next version of Scintilla
+#endif
+#include "Scintilla.h"
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif