aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/c_src/wxe_callback_impl.h
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2014-03-20 11:40:58 +0100
committerDan Gudmundsson <[email protected]>2014-03-20 15:10:15 +0100
commit8bf9ec0cb4d4f15bbc2e0e6ccadb43284bcfaa7a (patch)
tree635dea7e749b80a6573662305cd2f016aefd404a /lib/wx/c_src/wxe_callback_impl.h
parent5b5ae437cbb7132cb251f7556764971c9feef3ad (diff)
downloadotp-8bf9ec0cb4d4f15bbc2e0e6ccadb43284bcfaa7a.tar.gz
otp-8bf9ec0cb4d4f15bbc2e0e6ccadb43284bcfaa7a.tar.bz2
otp-8bf9ec0cb4d4f15bbc2e0e6ccadb43284bcfaa7a.zip
wx: Fix listCtrl sort callback
Diffstat (limited to 'lib/wx/c_src/wxe_callback_impl.h')
-rw-r--r--lib/wx/c_src/wxe_callback_impl.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/wx/c_src/wxe_callback_impl.h b/lib/wx/c_src/wxe_callback_impl.h
index 1c355e4d38..ecfcd3db41 100644
--- a/lib/wx/c_src/wxe_callback_impl.h
+++ b/lib/wx/c_src/wxe_callback_impl.h
@@ -23,6 +23,13 @@
void pre_callback();
void handle_event_callback(ErlDrvPort port, ErlDrvTermData process);
+#if wxCHECK_VERSION(2,9,0)
+ #define wxeIntPtr wxIntPtr
+#else
+ // This is bad but how it was in wx-2.8
+ #define wxeIntPtr long
+#endif
+
/* Fun Callback id */
class wxeEvtListener : public wxEvtHandler
{
@@ -88,6 +95,6 @@ struct callbackInfo {
int callbackID;
};
-int wxCALLBACK wxEListCtrlCompare(long item1, long item2, long callbackInfoPtr);
+int wxCALLBACK wxEListCtrlCompare(wxeIntPtr item1, wxeIntPtr item2, wxeIntPtr callbackInfoPtr);
#endif