Couple changes for module loading in mingw

This commit is contained in:
Jonathan Turner 2009-09-08 21:22:37 +00:00
parent f7b530ebae
commit 1bf3b1ed37

View File

@ -13,7 +13,7 @@
#ifdef _POSIX_VERSION #ifdef _POSIX_VERSION
#include <dlfcn.h> #include <dlfcn.h>
#else #else
#ifdef _WINDOWS #ifdef WIN32
#include <Windows.h> #include <Windows.h>
#endif #endif
#endif #endif
@ -87,7 +87,7 @@ namespace chaiscript
}; };
#else #else
#ifdef _WINDOWS #ifdef WIN32
std::string GetErrorMessage(DWORD err) std::string GetErrorMessage(DWORD err)
{ {
@ -100,7 +100,7 @@ namespace chaiscript
NULL, NULL,
err, err,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPWSTR)&lpMsgBuf, (LPSTR)&lpMsgBuf,
0, NULL ); 0, NULL );
std::string retval; std::string retval;