Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gcompris/menu.c2
-rw-r--r--src/gcompris/properties.c7
2 files changed, 6 insertions, 3 deletions
diff --git a/src/gcompris/menu.c b/src/gcompris/menu.c
index 33aede4..9918c5d 100644
--- a/src/gcompris/menu.c
+++ b/src/gcompris/menu.c
@@ -642,7 +642,7 @@ void gc_menu_load()
GTimeVal now;
g_get_current_time (&now);
- g_date_set_time_val (today, &now);-
+ g_date_set_time_val (today, &now);
#else
g_date_set_time (today, time (NULL));
#endif
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);
}