blob: 52e1099e43cf2c0366ff72a411077f3f7ec29a95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
--- keytouch-keyboard/src/check_syntax.c
+++ keytouch-keyboard/src/check_syntax.c
@@ -29,10 +29,10 @@
You can contact me at: marvinr(at)users(dot)sf(dot)net
(replace (at) by @ and (dot) by .)
-----------------------------------------------------------------------------------*/
+#define _XOPEN_SOURCE /* strptime */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#define _XOPEN_SOURCE /* glibc2 needs this */
#include <time.h>
#include <mxml.h>
--- keytouch-keyboard/src/config.c
+++ keytouch-keyboard/src/config.c
@@ -37,6 +37,7 @@
You can contact me at: marvinr(at)users(dot)sf(dot)net
(replace (at) by @ and (dot) by .)
-----------------------------------------------------------------------------------*/
+#define _GNU_SOURCE /* strptime, scandir */
#include <stdlib.h>
#include <dirent.h>
#include <dlfcn.h>
@@ -45,7 +46,6 @@
#include <unistd.h>
#include <string.h>
#include <stdio.h>
-#define _GNU_SOURCE /* glibc2 needs this */
#include <time.h>
#include <mxml.h>
|