X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/837e57436a89516a5fa9f478f401e06bd872c17c..7b9da2077d0975db6c965a85c91d5aca671ab5e3:/src/msw/wave.cpp diff --git a/src/msw/wave.cpp b/src/msw/wave.cpp index df4b95ee74..8f2edf9af5 100644 --- a/src/msw/wave.cpp +++ b/src/msw/wave.cpp @@ -31,15 +31,17 @@ #include #include -#ifndef __GNUWIN32__ +#if !defined( __GNUWIN32__ ) || defined(wxUSE_NORLANDER_HEADERS) #include #endif #ifndef __TWIN32__ #ifdef __GNUWIN32__ +#ifndef wxUSE_NORLANDER_HEADERS #include "wx/msw/gnuwin32/extra.h" #endif #endif +#endif wxWave::wxWave() : m_waveData(NULL), m_waveLength(0), m_isResource(FALSE) @@ -74,12 +76,12 @@ bool wxWave::Create(const wxString& fileName, bool isResource) HRSRC hresInfo; #if defined(__WIN32__) && !defined(__TWIN32__) #ifdef _UNICODE - hresInfo = ::FindResourceW((HMODULE) wxhInstance, fileName, _T("WAVE")); + hresInfo = ::FindResourceW((HMODULE) wxhInstance, fileName, wxT("WAVE")); #else - hresInfo = ::FindResourceA((HMODULE) wxhInstance, fileName, _T("WAVE")); + hresInfo = ::FindResourceA((HMODULE) wxhInstance, fileName, wxT("WAVE")); #endif #else - hresInfo = ::FindResource((HMODULE) wxhInstance, fileName, _T("WAVE")); + hresInfo = ::FindResource((HMODULE) wxhInstance, fileName, wxT("WAVE")); #endif if (!hresInfo) return FALSE;