From eca6e6e27950abb15d299bb24448ae60f2ed1d66 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 19 Mar 2012 19:45:53 +0000 Subject: [PATCH] win32-fix compiling in old windows and old visual studio --- src/drivers/win/taseditor/piano_roll.cpp | 1 + src/drivers/win/taseditor/taseditor_window.cpp | 6 ++++++ vc/vc8_fceux.vcproj | 8 ++++++++ vc/vc9_fceux.vcproj | 8 ++++++++ 4 files changed, 23 insertions(+) diff --git a/src/drivers/win/taseditor/piano_roll.cpp b/src/drivers/win/taseditor/piano_roll.cpp index 128f091a..3757523e 100644 --- a/src/drivers/win/taseditor/piano_roll.cpp +++ b/src/drivers/win/taseditor/piano_roll.cpp @@ -25,6 +25,7 @@ Piano Roll - Piano Roll interface #include "taseditor_project.h" #include "utils/xstring.h" #include "uxtheme.h" +#include #pragma comment(lib, "UxTheme.lib") diff --git a/src/drivers/win/taseditor/taseditor_window.cpp b/src/drivers/win/taseditor/taseditor_window.cpp index 2516ca34..a0eabc1b 100644 --- a/src/drivers/win/taseditor/taseditor_window.cpp +++ b/src/drivers/win/taseditor/taseditor_window.cpp @@ -28,6 +28,12 @@ Window - User Interface #include "../keyboard.h" #include "../joystick.h" +//compile for windows 2000 target +#if (_WIN32_WINNT < 0x501) +#define LVN_BEGINSCROLL (LVN_FIRST-80) +#define LVN_ENDSCROLL (LVN_FIRST-81) +#endif + extern TASEDITOR_CONFIG taseditor_config; extern PLAYBACK playback; extern GREENZONE greenzone; diff --git a/vc/vc8_fceux.vcproj b/vc/vc8_fceux.vcproj index 2d6f1344..2c74a895 100644 --- a/vc/vc8_fceux.vcproj +++ b/vc/vc8_fceux.vcproj @@ -2298,6 +2298,14 @@ RelativePath="..\src\drivers\win\taseditor\bookmarks.h" > + + + + diff --git a/vc/vc9_fceux.vcproj b/vc/vc9_fceux.vcproj index 8bf91582..d548ab3d 100644 --- a/vc/vc9_fceux.vcproj +++ b/vc/vc9_fceux.vcproj @@ -1807,6 +1807,14 @@ RelativePath="..\src\drivers\win\taseditor\bookmarks.h" > + + + +