aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Scintilla.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Scintilla.h')
-rw-r--r--include/Scintilla.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 802a160bf..429b7a9d7 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -18,7 +18,16 @@ void Scintilla_RegisterClasses(HINSTANCE hInstance);
#endif
#endif
-typedef long (*SciFnDirect)(long ptr, unsigned int iMessage, unsigned long wParam, long lParam);
+// Here should be placed typedefs for uptr_t, an unsigned integer type large enough to
+// hold a pointer and sptr_t, a signed integer large enough to hold a pointer.
+// May need to be changed for 64 bit platforms.
+#ifndef POINTER_TYPES
+#define POINTER_TYPES
+typedef unsigned long uptr_t;
+typedef long sptr_t;
+#endif
+
+typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam);
//++Autogenerated -- start of section automatically generated from Scintilla.iface
#define INVALID_POSITION -1
@@ -507,8 +516,8 @@ struct SCNotification {
int linesAdded; // SCN_MODIFIED
#ifdef MACRO_SUPPORT
int message; // SCN_MACRORECORD
- int wParam; // SCN_MACRORECORD
- int lParam; // SCN_MACRORECORD
+ uptr_t wParam; // SCN_MACRORECORD
+ sptr_t lParam; // SCN_MACRORECORD
#endif
int line; // SCN_MODIFIED
int foldLevelNow; // SCN_MODIFIED