// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "wave.h"
#endif
#include "wx/msw/wave.h"
#include "wx/msw/private.h"
-#include <windows.h>
#include <windowsx.h>
#if defined(__GNUWIN32_OLD__) && !defined(__CYGWIN10__)
m_waveLength = (int) fileWave.Length();
- m_waveData = (wxByte*)::GlobalLock(::GlobalAlloc(GMEM_MOVEABLE | GMEM_SHARE, m_waveLength));
+ m_waveData = (wxByte*)GlobalLock(GlobalAlloc(GMEM_MOVEABLE | GMEM_SHARE, m_waveLength));
if (!m_waveData)
return FALSE;
Free();
m_isResource = FALSE;
m_waveLength=size;
- m_waveData = (wxByte*)::GlobalLock(::GlobalAlloc(GMEM_MOVEABLE | GMEM_SHARE, m_waveLength));
+ m_waveData = (wxByte*)GlobalLock(GlobalAlloc(GMEM_MOVEABLE | GMEM_SHARE, m_waveLength));
if (!m_waveData)
return FALSE;
{
if (m_waveData)
{
-#ifdef __WIN32__
- HGLOBAL waveData = ::GlobalHandle(m_waveData);
+#ifdef __WXWINCE__
+ HGLOBAL waveData = (HGLOBAL) m_waveData;
+#elif defined(__WIN32__)
+ HGLOBAL waveData = GlobalHandle(m_waveData);
#else
HGLOBAL waveData = GlobalPtrHandle(m_waveData);
#endif
if (waveData)
{
- if (m_isResource)
+#ifndef __WXWINCE__
+ if (m_isResource)
::FreeResource(waveData);
else
+#endif
{
- ::GlobalUnlock(waveData);
- ::GlobalFree(waveData);
+ GlobalUnlock(waveData);
+ GlobalFree(waveData);
}
m_waveData = NULL;