aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-02-05 04:39:42 +0000
committernyamatongwe <devnull@localhost>2001-02-05 04:39:42 +0000
commitbc28310ef52287aef419d8edf728a1c6f47fe27e (patch)
treeabedd8d80bacfd6f5c9e754109c8687ab98d10ec /gtk/PlatGTK.cxx
parent6fbd45ca439f4e3e744a183a9bbaaa012fea98c9 (diff)
downloadscintilla-mirror-bc28310ef52287aef419d8edf728a1c6f47fe27e.tar.gz
Patch from John to make GTK+ version build on Win32.
Modified by me to avoid pointless warnings and print error message if try to build with Borland C++.
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rw-r--r--gtk/PlatGTK.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index bb1e1c291..a9b24ad23 100644
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -14,6 +14,12 @@
#include "ScintillaWidget.h"
#include "Scintilla.h"
+/* Use fast way of getting char data on win32 to work around problems
+ with gdk_string_extents. */
+#ifdef G_OS_WIN32
+#define FAST_WAY
+#endif
+
Point Point::FromLong(long lpoint) {
return Point(
Platform::LowShortFromLong(lpoint),