comparison 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
comparison
equal deleted inserted replaced
1662:620df4222086 1663:a76fb5f1a6c8
484 #if defined(__WIN32__) || defined(WINNT) 484 #if defined(__WIN32__) || defined(WINNT)
485 #include <windows.h> 485 #include <windows.h>
486 #include <commctrl.h> 486 #include <commctrl.h>
487 487
488 #if defined(MSVC) && !defined(API) 488 #if defined(MSVC) && !defined(API)
489 # ifdef __MINGW32__ 489 # if defined(__MINGW32__) && defined(BUILD_DLL)
490 # ifdef BUILD_DLL 490 # define API _cdecl __declspec(dllexport)
491 # define API APIENTRY __declspec(dllexport)
492 # else
493 # define API APIENTRY __declspec(dllimport)
494 # endif
495 # else 491 # else
496 # define API _cdecl 492 # define API _cdecl
497 #endif 493 #endif
498 #endif 494 #endif
499 495