aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/calendar-model.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c
index 6cf6501910..beb9f338c8 100644
--- a/calendar/gui/calendar-model.c
+++ b/calendar/gui/calendar-model.c
@@ -24,19 +24,19 @@
#include <config.h>
#include <math.h>
-/* We need this for strptime. */
#include <ctype.h>
-#define _XOPEN_SOURCE
-#define __USE_XOPEN
-#include <sys/time.h>
-#undef _XOPEN_SOURCE
-#undef __USE_XOPEN
#include <time.h>
#include <gnome.h>
#include <cal-util/timeutil.h>
#include "calendar-model.h"
#include "calendar-commands.h"
+/* We need this for strptime. */
+#define _XOPEN_SOURCE 500
+#define __USE_XOPEN
+#include <sys/time.h>
+#undef _XOPEN_SOURCE
+#undef __USE_XOPEN
/* Private part of the ECalendarModel structure */