Re: Lua and unicode with visual studio
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Lua and unicode with visual studio
- From: roberto@... (Roberto Ierusalimschy)
- Date: 2006年6月23日 09:25:52 -0300
> I have noticed that lua doesn't like when compiled with unicode in
> visual studio so i tracked down
> the problem to loadlib.c and fixed it
>
> [...]
You can make these corrections in luaconf.h:
#if defined(loadlib_c) && defined(UNICODE)
#define GetModuleFileName GetModuleFileNameA
#define FormatMessage FormatMessageA
#define LoadLibrary LoadLibraryA
#endif
-- Roberto