fixed compiler warning on non-Unix systems
authorHolger Schemel <info@artsoft.org>
Sun, 21 Jun 2020 13:18:43 +0000 (15:18 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 21 Jun 2020 13:18:43 +0000 (15:18 +0200)
src/main.c

index eafc7dc3b8b55407081a289ec1a1dd01f1f67220..cb083658537519b87601c8137ac7adcc99a6174e 100644 (file)
@@ -7689,7 +7689,9 @@ static void InitProgramConfig(char *command_filename)
   char *config_filename = getProgramConfigFilename(command_filename);
   char *userdata_basename = getBaseNameNoSuffix(command_filename);
   char *userdata_subdir;
+#if defined(PLATFORM_UNIX)
   char *userdata_subdir_unix;
+#endif
 
   // read default program config, if existing
   if (fileExists(config_filename))
@@ -7707,8 +7709,10 @@ static void InitProgramConfig(char *command_filename)
     LoadSetupFromFilename(config_filename);
   }
 
+#if defined(PLATFORM_UNIX)
   // set user data directory for Linux/Unix (but not Mac OS X)
   userdata_subdir_unix = getStringCat2(".", userdata_basename);
+#endif
 
   // set program title from potentially redefined program title
   if (setup.internal.program_title != NULL &&