diff options
| author | ruki <[email protected]> | 2016-09-18 14:14:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-09-18 14:14:04 +0800 |
| commit | e46c89fc171c7609b946fbf2bc8772577adb77cf (patch) | |
| tree | 3b443fb0056903ff206b33aa55f0d4db7689f1e1 /core/src/xmake | |
| parent | a542f78da612c7802bce751aec1ae7c7c06d745d (diff) | |
patch legacy_stdio_definitions for vs2015
Diffstat (limited to 'core/src/xmake')
| -rwxr-xr-x | core/src/xmake/machine.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c index edea11a56..dd300e3a7 100755 --- a/core/src/xmake/machine.c +++ b/core/src/xmake/machine.c @@ -36,6 +36,11 @@ # include <windows.h> #endif +// patch for linking error on vs2015: unresolved external symbol ___iob_func +#if defined(TB_COMPILER_IS_MSVC) && _MSC_VER >= 1900 +# pragma comment(lib, "legacy_stdio_definitions.lib") +#endif + /* ////////////////////////////////////////////////////////////////////////////////////// * types */ @@ -152,14 +157,6 @@ static luaL_Reg const g_process_functions[] = , { tb_null, tb_null } }; -// patch for linking error on vs2015: unresolved external symbol ___iob_func -#if defined(TB_COMPILER_IS_MSVC) && _MSC_VER >= 1900 -extern "C" -{ - FILE __iob_func[3] = { *stdin, *stdout, *stderr }; -} -#endif - /* ////////////////////////////////////////////////////////////////////////////////////// * private implementation */ |
