Don't define _XOPEN_SOURCE when compiling with _GNU_SOURCE

_XOPEN_SOURCE is included by _GNU_SOURCE.
This fixes redefinition errors of _XOPEN_SOURCE when the libc
implementations define it because of _GNU_SOURCE.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
This commit is contained in:
Daniel Danzberger 2020-03-09 12:25:13 +01:00
parent fbedd21f07
commit 43b4cff541

View file

@ -13,7 +13,6 @@
#ifndef __DM_COMMON_H
#define __DM_COMMON_H
#define _XOPEN_SOURCE /* for strptime */
#include <stdio.h>
#include <string.h>
#include <stdbool.h>