MT support in mingw win32.

This commit is contained in:
Vitor Santos Costa
2012-06-29 15:38:49 -05:00
parent 2d71a96d54
commit 5989af937b
8 changed files with 141 additions and 107 deletions

4
include/SWI-Prolog.h Normal file → Executable file
View File

@@ -662,11 +662,13 @@ PL_EXPORT(pl_wchar_t*) PL_atom_generator_w(const pl_wchar_t *pref,
* WINDOWS MESSAGES *
*******************************/
#ifdef _WINDOWS_ /* <windows.h> is included */
#if defined(_MSC_VER) || defined(__MINGW32__) /* <windows.h> is included */
#define PL_MSG_EXCEPTION_RAISED -1
#define PL_MSG_IGNORED 0
#define PL_MSG_HANDLED 1
#include <windows.h>
PL_EXPORT(LRESULT) PL_win_message_proc(HWND hwnd,
UINT message,
WPARAM wParam,