g_get_current_dir(char* dirname, int maxlen)
{
#if defined(_WIN32)
  GetCurrentDirectoryA(maxlen, dirname);
  return 0;
#else
  if (getcwd(dirname, maxlen) == 0)
  {
  }
  return 0;
#endif
}
g_get_current_dir(char* dirname, int maxlen)
{
#if defined(_WIN32)
  GetCurrentDirectoryA(maxlen, dirname);
  return 0;
#else
  if (getcwd(dirname, maxlen) == 0)
  {
  }
  return 0;
#endif
}