X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d90895ac118ad4546eed7ee4c358a3fe644a1ad7..bbee1b4abc13379569607df8f6985ec68dc12231:/src/os2/wave.cpp diff --git a/src/os2/wave.cpp b/src/os2/wave.cpp index bf21d37303..87320e0d63 100644 --- a/src/os2/wave.cpp +++ b/src/os2/wave.cpp @@ -18,16 +18,18 @@ #include "wx/file.h" #include "wx/os2/wave.h" -#include "wx/os2/private.h" - -#define INCL_DOS +#define INCL_32 /* force 32 bit compile */ +#define INCL_GPIBITMAPS +#define INCL_DOSFILEMGR +#define INCL_WIN +#define INCL_GPI #define INCL_PM #include -#ifdef RECT - #undef RECT -#endif -#include -#include +#include +#include +#include +#include +#include wxWave::wxWave() : m_waveData(NULL), m_waveLength(0), m_isResource(FALSE) @@ -84,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)) @@ -99,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 } }