From dfd8fabdd7c20422a7f8abf30226aa3e9e242f55 Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Thu, 27 Apr 2023 13:44:13 -0700 Subject: [PATCH] Don't #define _DEFAULT_SOURCE if already defined. --- src/map/mapper/mapperLib.c | 2 ++ src/map/mio/mio.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/map/mapper/mapperLib.c b/src/map/mapper/mapperLib.c index 662d1b386..333844355 100644 --- a/src/map/mapper/mapperLib.c +++ b/src/map/mapper/mapperLib.c @@ -18,7 +18,9 @@ //#define _BSD_SOURCE #ifndef WIN32 +#ifndef _DEFAULT_SOURCE #define _DEFAULT_SOURCE +#endif #include #endif diff --git a/src/map/mio/mio.c b/src/map/mio/mio.c index d487e8677..9ca6767db 100644 --- a/src/map/mio/mio.c +++ b/src/map/mio/mio.c @@ -19,7 +19,9 @@ //#define _BSD_SOURCE #ifndef WIN32 +#ifndef _DEFAULT_SOURCE #define _DEFAULT_SOURCE +#endif #include #endif