diff --git a/compile_commands.json b/compile_commands.json index 32a1e0e..0450000 100644 --- a/compile_commands.json +++ b/compile_commands.json @@ -10,8 +10,6 @@ "-Werror", "-Iflamingo/runtime", "-Wno-unused-parameter", - "-D_DEFAULT_SOURCE", - "-D_GNU_SOURCE", "-ferror-limit=0", "-o", "bin/flamingo.o", @@ -31,7 +29,6 @@ "-Werror", "-Iflamingo/runtime", "-Wno-unused-parameter", - "-D_DEFAULT_SOURCE", "-o", "bin/main.o", "main.c" @@ -39,4 +36,4 @@ "directory": "/Users/aymeric/flamingo/flamingo", "file": "main.c" } -] \ No newline at end of file +] diff --git a/flamingo/flamingo.c b/flamingo/flamingo.c index b77efe8..1544a5f 100644 --- a/flamingo/flamingo.c +++ b/flamingo/flamingo.c @@ -1,8 +1,7 @@ // This Source Form is subject to the terms of the AQUA Software License, // v. 1.0. Copyright (c) 2024 Aymeric Wibo -#define __STDC_WANT_LIB_EXT2__ \ - 1 // ISO/IEC TR 24731-2:2010 standard library extensions +#define _DEFAULT_SOURCE #if __linux__ # define _GNU_SOURCE