aboutsummaryrefslogtreecommitdiff
path: root/src/lua_interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua_interface.c')
-rw-r--r--src/lua_interface.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lua_interface.c b/src/lua_interface.c
index 58a237fe..0ae9ad23 100644
--- a/src/lua_interface.c
+++ b/src/lua_interface.c
@@ -26,10 +26,6 @@
lua_setmetatable(l, -2); \
}
-#ifdef MAC
-using namespace Scintilla;
-#endif
-
lua_State *lua;
int closing = FALSE;
@@ -1142,11 +1138,7 @@ static int l_cf_ta_buffer_new(lua_State *lua) {
static int l_cf_buffer_text_range(lua_State *lua) {
l_check_focused_buffer(lua, 1);
-#ifndef MAC
- struct TextRange tr;
-#else
- Scintilla::TextRange tr;
-#endif
+ struct Sci_TextRange tr;
tr.chrg.cpMin = luaL_checkinteger(lua, 2);
tr.chrg.cpMax = luaL_checkinteger(lua, 3);
int length = tr.chrg.cpMax - tr.chrg.cpMin;