aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2006-05-05 23:27:53 +0000
committernyamatongwe <unknown>2006-05-05 23:27:53 +0000
commitead8e70633213b69fa23c6d97a828a7c85178349 (patch)
treeb8d33c4a590a1d000aa82e7cbca63de509b576f4
parent845be30ece45039021ca02f32e931cfb99b1d0e5 (diff)
downloadscintilla-mirror-ead8e70633213b69fa23c6d97a828a7c85178349.tar.gz
Patch from Michael Durland so that constants have type to be more standard
compliant and to protect IME code from Digital Mars compiler.
-rw-r--r--win32/ScintillaWin.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 62641213e..db8bd5204 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -367,11 +367,11 @@ static int InputCodePage() {
}
#ifndef VK_OEM_2
-static const VK_OEM_2=0xbf;
-static const VK_OEM_3=0xc0;
-static const VK_OEM_4=0xdb;
-static const VK_OEM_5=0xdc;
-static const VK_OEM_6=0xdd;
+static const int VK_OEM_2=0xbf;
+static const int VK_OEM_3=0xc0;
+static const int VK_OEM_4=0xdb;
+static const int VK_OEM_5=0xdc;
+static const int VK_OEM_6=0xdd;
#endif
/** Map the key codes to their equivalent SCK_ form. */
@@ -650,10 +650,13 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam
return ::DefWindowProc(MainHWND(), iMessage, wParam, lParam);
case WM_LBUTTONDOWN: {
+#ifndef __DMC__
+ // Digital Mars compiler does not include Imm library
// For IME, set the composition string as the result string.
HIMC hIMC = ::ImmGetContext(MainHWND());
::ImmNotifyIME(hIMC, NI_COMPOSITIONSTR, CPS_COMPLETE, 0);
::ImmReleaseContext(MainHWND(), hIMC);
+#endif
//
//Platform::DebugPrintf("Buttdown %d %x %x %x %x %x\n",iMessage, wParam, lParam,
// Platform::IsKeyDown(VK_SHIFT),