From c3f3fa37626168a379a6680356889aef67b1a9d3 Mon Sep 17 00:00:00 2001 From: Pedro Lopez-Cabanillas Date: Thu, 2 Apr 2009 18:28:07 +0000 Subject: [PATCH] * fixed compilation under MSVC 2008 and older. --- fluidsynth/ChangeLog | 3 +++ fluidsynth/src/config_win32.h | 6 ++++++ fluidsynth/src/config_win32.h.in | 6 ++++++ 3 files changed, 15 insertions(+) diff --git a/fluidsynth/ChangeLog b/fluidsynth/ChangeLog index cadb45af..0dea8391 100644 --- a/fluidsynth/ChangeLog +++ b/fluidsynth/ChangeLog @@ -1,3 +1,6 @@ +2009-04-02 Pedro Lopez-Cabanillas + * src/config_win32.h: fix compilation under MSVC 2008 and older + 2009-03-15 Josh Green * ltconfig: Removed obsolete ltconfig script by suggestion of Sven Hoexter. diff --git a/fluidsynth/src/config_win32.h b/fluidsynth/src/config_win32.h index ef9ca4c0..96e8906b 100644 --- a/fluidsynth/src/config_win32.h +++ b/fluidsynth/src/config_win32.h @@ -15,7 +15,12 @@ #define WITH_FLOAT 1 #define snprintf _snprintf +#define strcasecmp _stricmp + +#if _MSC_VER < 1500 #define vsnprintf _vsnprintf +#endif + #define STDIN_FILENO 0 #define STDOUT_FILENO 1 #define STDERR_FILENO 2 @@ -26,6 +31,7 @@ #pragma warning(disable : 4244) #pragma warning(disable : 4101) #pragma warning(disable : 4305) +#pragma warning(disable : 4996) #define WITHOUT_SERVER 1 diff --git a/fluidsynth/src/config_win32.h.in b/fluidsynth/src/config_win32.h.in index d70223db..1234f703 100644 --- a/fluidsynth/src/config_win32.h.in +++ b/fluidsynth/src/config_win32.h.in @@ -15,7 +15,12 @@ #define WITH_FLOAT 1 #define snprintf _snprintf +#define strcasecmp _stricmp + +#if _MSC_VER < 1500 #define vsnprintf _vsnprintf +#endif + #define STDIN_FILENO 0 #define STDOUT_FILENO 1 #define STDERR_FILENO 2 @@ -26,6 +31,7 @@ #pragma warning(disable : 4244) #pragma warning(disable : 4101) #pragma warning(disable : 4305) +#pragma warning(disable : 4996) #define WITHOUT_SERVER 1