X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/892b89f3b79a756ba3c278c605b79a6fa377d60f..1978421a6d8b81c1f8a961da4b8ddf544fec7b1b:/src/os2/wave.cpp diff --git a/src/os2/wave.cpp b/src/os2/wave.cpp index ed70fafdb8..87320e0d63 100644 --- a/src/os2/wave.cpp +++ b/src/os2/wave.cpp @@ -18,13 +18,18 @@ #include "wx/file.h" #include "wx/os2/wave.h" -#include "wx/os2/private.h" - -#ifdef RECT - #undef RECT -#endif -#include -#include +#define INCL_32 /* force 32 bit compile */ +#define INCL_GPIBITMAPS +#define INCL_DOSFILEMGR +#define INCL_WIN +#define INCL_GPI +#define INCL_PM +#include +#include +#include +#include +#include +#include wxWave::wxWave() : m_waveData(NULL), m_waveLength(0), m_isResource(FALSE) @@ -81,6 +86,7 @@ bool wxWave::Create(const wxString& fileName, bool isResource) else { m_isResource = FALSE; +#if wxUSE_FILE wxFile fileWave; if (!fileWave.Open(fileName, wxFile::read)) @@ -96,6 +102,9 @@ bool wxWave::Create(const wxString& fileName, bool isResource) fileWave.Read(m_waveData, m_waveLength); */ return TRUE; +#else + return FALSE; +#endif //wxUSE_FILE } }