Set _DEFAULT_SOURCE and _GNU_SOURCE globally. (#2010)

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni
2023-06-12 19:53:57 +02:00
committed by GitHub
parent 8ea0eaa0d0
commit 4e284b5e40
6 changed files with 2 additions and 13 deletions
-2
View File
@@ -41,8 +41,6 @@
*
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <ctype.h>
// #include <sys/time.h>
-3
View File
@@ -81,9 +81,6 @@
#ifndef INCLUDE_PORTABILITY_H_
#define INCLUDE_PORTABILITY_H_
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif // _GNU_SOURCE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS 1
#endif // __STDC_FORMAT_MACROS