#include "wx/msw/wince/missing.h"
#endif
+ /*
+ * The following are specifically required for Wine
+ */
+
+#ifdef __WINE__
+ #ifndef ENUM_CURRENT_SETTINGS
+ #define ENUM_CURRENT_SETTINGS ((DWORD)-1)
+ #endif
+ #ifndef BROADCAST_QUERY_DENY
+ #define BROADCAST_QUERY_DENY 1112363332
+ #endif
+#endif // defined __WINE__
+
#endif
// _WX_MISSING_H_
const void* wxDataObject::GetSizeFromBuffer( const void* buffer, size_t* size,
const wxDataFormat& format )
{
- size_t realsz = ::HeapSize(::GetProcessHeap(), 0, buffer);
+ // hack: the third parameter is declared non-const in Wine's headers so
+ // cast away the const
+ size_t realsz = ::HeapSize(::GetProcessHeap(), 0,
+ wx_const_cast(void*, buffer));
if ( realsz == (size_t)-1 )
{
// note that HeapSize() does not set last error