From 56339de8502e8838b825453668c7388bbc0d448b Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Thu, 2 Mar 2023 08:35:45 +1000 Subject: build: define _GNU_SOURCE only on the command line Not in source files See https://ariadne.space/2021/12/21/stop-defining-feature-test-macros-in-your-code/ Signed-off-by: Steve Bennett --- jim-clock.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'jim-clock.c') diff --git a/jim-clock.c b/jim-clock.c index 43d7f74..1b03935 100644 --- a/jim-clock.c +++ b/jim-clock.c @@ -6,18 +6,6 @@ #include "jimautoconf.h" -/* For strptime() - currently nothing sets this */ -#ifdef STRPTIME_NEEDS_XOPEN_SOURCE -#ifndef _XOPEN_SOURCE -#define _XOPEN_SOURCE 500 -#endif -#endif - -/* For timegm() */ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif - #include #include #include -- cgit v1.1