Mercurial > dwindows
diff dw.h @ 1663:a76fb5f1a6c8
Fixes for building in Unicode mode with MinGW on Windows.
Also fix incorrect calling conventions on signal handlers with MinGW.
AEROGLASS is still not supported with MinGW due to some missing items
in the uxtheme.h header.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 20 Apr 2012 19:44:16 +0000 |
parents | 6fe1e91da477 |
children | 9dbd2984c1e5 |
line wrap: on
line diff
--- a/dw.h Wed Apr 18 07:28:19 2012 +0000 +++ b/dw.h Fri Apr 20 19:44:16 2012 +0000 @@ -486,12 +486,8 @@ #include <commctrl.h> #if defined(MSVC) && !defined(API) -# ifdef __MINGW32__ -# ifdef BUILD_DLL -# define API APIENTRY __declspec(dllexport) -# else -# define API APIENTRY __declspec(dllimport) -# endif +# if defined(__MINGW32__) && defined(BUILD_DLL) +# define API _cdecl __declspec(dllexport) # else # define API _cdecl #endif