Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/gcompris/properties.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gcompris/properties.c')
-rw-r--r--src/gcompris/properties.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gcompris/properties.c b/src/gcompris/properties.c
index 002d1de..2d20020 100644
--- a/src/gcompris/properties.c
+++ b/src/gcompris/properties.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#define G_STDIO_NO_WRAP_ON_UNIX
#include <glib/gstdio.h>
#include <fcntl.h>
#include <string.h>
@@ -99,11 +100,13 @@ gc_prop_config_file_get()
return(config_file);
dir = gc_prop_user_root_directory_get();
/* Was never called, must calculate it */
+#ifdef WIN32
if (! G_WIN32_IS_NT_BASED() ) {
config_file = g_strconcat(dir, "/gcompris.cfg", NULL);
- } else {
+ } else
+#endif
config_file = g_strconcat(dir, "/gcompris.conf", NULL);
- }
+
g_free(dir);
return(config_file);
}