ithewei %!s(int64=6) %!d(string=hai) anos
pai
achega
ad7eb9a306
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      hmain.cpp

+ 2 - 0
hmain.cpp

@@ -52,6 +52,7 @@ int main_ctx_init(int argc, char** argv) {
     }
     g_main_ctx.save_argv[g_main_ctx.argc] = NULL;
 
+#if defined(OS_WIN) || defined(OS_LINUX)
     // save env
     g_main_ctx.os_envp = environ;
     g_main_ctx.envc = 0;
@@ -79,6 +80,7 @@ int main_ctx_init(int argc, char** argv) {
         }
         g_main_ctx.env_kv[std::string(b, delim-b)] = std::string(delim+1);
     }
+#endif
 
     /*
     // print argv and envp