diff options
| -rw-r--r-- | core/src/xmake/os/getenvs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/xmake/os/getenvs.c b/core/src/xmake/os/getenvs.c index f504ebab3..e2af7d201 100644 --- a/core/src/xmake/os/getenvs.c +++ b/core/src/xmake/os/getenvs.c @@ -29,6 +29,9 @@ * includes */ #include "prefix.h" +#ifdef TB_CONFIG_OS_WINDOWS +# include <windows.h> +#endif /* ////////////////////////////////////////////////////////////////////////////////////// * macros @@ -62,7 +65,7 @@ tb_int_t xm_os_getenvs(lua_State* lua) lua_newtable(lua); #ifdef TB_CONFIG_OS_WINDOWS - tb_wchar_t const* p = (tb_wchar_t const*)tb_kernel32()->GetEnvironmentStringsW(); + tb_wchar_t const* p = (tb_wchar_t const*)GetEnvironmentStringsW(); if (p) { tb_int_t i = 0; |
