X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56689e1b3a3f573d8adc3f840823547d8478ef75..5de9f492eca0bde0b23d762e614c21b30c74adb5:/include/wx/msw/ole/oleutils.h diff --git a/include/wx/msw/ole/oleutils.h b/include/wx/msw/ole/oleutils.h index 157ec93a44..9f71b28de5 100644 --- a/include/wx/msw/ole/oleutils.h +++ b/include/wx/msw/ole/oleutils.h @@ -12,7 +12,7 @@ #ifndef _WX_OLEUTILS_H #define _WX_OLEUTILS_H -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "oleutils.h" #endif @@ -72,7 +72,7 @@ public: wxAutoULong(ULONG value = 0) : m_Value(value) { } operator ULONG&() { return m_Value; } - ULONG& operator=(ULONG value) { return m_Value = value; } + ULONG& operator=(ULONG value) { m_Value = value; return m_Value; } wxAutoULong& operator++() { ++m_Value; return *this; } const wxAutoULong operator++( int ) { wxAutoULong temp = *this; ++m_Value; return temp; }