X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/09785dd38dd19ef122acd0933677fa86a0b3232e..9d39cef7ef8f2dddce244846cca3a346508ae2af:/src/msw/timer.cpp diff --git a/src/msw/timer.cpp b/src/msw/timer.cpp index 2c9f4d79e3..cccb8ed09f 100644 --- a/src/msw/timer.cpp +++ b/src/msw/timer.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "timer.h" #endif @@ -49,19 +49,13 @@ WX_DECLARE_HASH_MAP( long, wxTimerMap wxTimerList; -void WINAPI _EXPORT wxTimerProc(HWND hwnd, WORD, int idTimer, DWORD); +void WINAPI wxTimerProc(HWND hwnd, WORD, int idTimer, DWORD); // ---------------------------------------------------------------------------- // macros // ---------------------------------------------------------------------------- -#ifdef __WIN32__ - #define _EXPORT -#else - #define _EXPORT _export -#endif - -// should probably be in wx/msw/private.h +// should probably be in wx/msw/missing.h #ifdef __WXMICROWIN__ #define MakeProcInstance(proc, hinst) proc #endif @@ -149,7 +143,7 @@ void wxProcessTimer(wxTimer& timer) timer.Notify(); } -void WINAPI _EXPORT wxTimerProc(HWND WXUNUSED(hwnd), WORD, int idTimer, DWORD) +void WINAPI wxTimerProc(HWND WXUNUSED(hwnd), WORD, int idTimer, DWORD) { wxTimerMap::iterator node = wxTimerList.find((long)idTimer); @@ -157,8 +151,7 @@ void WINAPI _EXPORT wxTimerProc(HWND WXUNUSED(hwnd), WORD, int idTimer, DWORD) wxASSERT_MSG( node != wxTimerList.end(), wxT("bogus timer id in wxTimerProc") ); wxProcessTimer(*(node->second)); - - // return 0; } #endif // wxUSE_TIMER +