commit f34a79f14a26344a1d640efb7a52c5b97f72e75d
parent df4a593ade550cd6ff751fead5b8db5514346f44
Author: Andreas Gruhler <agruhl@gmx.ch>
Date: Mon, 6 Dec 2021 23:15:35 +0100
use _XOPEN_SOURCE instead of _GNU_SOURCE
Diffstat:
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/caldav.h b/src/caldav.h
@@ -1,8 +1,7 @@
#ifndef DIARY_CALDAV_H
#define DIARY_CALDAV_H
-#define __USE_XOPEN
-#define _GNU_SOURCE
+#define _XOPEN_SOURCE 700
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/import.h b/src/import.h
@@ -1,8 +1,7 @@
#ifndef DIARY_IMPORT_H
#define DIARY_IMPORT_H
-#define __USE_XOPEN
-#define _GNU_SOURCE
+#define _XOPEN_SOURCE 700
#include <stdio.h>
#include <stdlib.h>
#include <regex.h>