From 1d8ad9d1c9744272c9e818dd5a03294b6ddcc948 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 6 May 2004 18:28:54 +0000 Subject: [PATCH] Fix for compilation with wxWindows < 2.4.2. --- ChangeLog | 2 ++ src/mkvinfo_gui.cpp | 4 ++++ src/mmg/tab_chapters.cpp | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8c36fa8cd..9f84eec1d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2004-05-06 Moritz Bunkus + * mmg: Fix for compilation with wxWindows < 2.4.2. + * Released v0.8.9. * mmg: new feature: mmg will ask for confirmation before diff --git a/src/mkvinfo_gui.cpp b/src/mkvinfo_gui.cpp index 8802bb554..f631a8dbf 100644 --- a/src/mkvinfo_gui.cpp +++ b/src/mkvinfo_gui.cpp @@ -17,6 +17,10 @@ using namespace libebml; using namespace libmatroska; +#if ! wxCHECK_VERSION(2,4,2) +# define wxTreeItemIdValue long +#endif + mi_frame *frame; enum { diff --git a/src/mmg/tab_chapters.cpp b/src/mmg/tab_chapters.cpp index d0a1262f3..7df7ada6a 100644 --- a/src/mmg/tab_chapters.cpp +++ b/src/mmg/tab_chapters.cpp @@ -45,6 +45,10 @@ using namespace std; using namespace libebml; using namespace libmatroska; +#if ! wxCHECK_VERSION(2,4,2) +# define wxTreeItemIdValue long +#endif + class chapters_drop_target_c: public wxFileDropTarget { private: tab_chapters *owner;