Skip to content

Commit

Permalink
flamingo: Define _DEFAULT_SOURCE instead
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Nov 5, 2024
1 parent 4eef50b commit 971eeed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions compile_commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"-Werror",
"-Iflamingo/runtime",
"-Wno-unused-parameter",
"-D_DEFAULT_SOURCE",
"-D_GNU_SOURCE",
"-ferror-limit=0",
"-o",
"bin/flamingo.o",
Expand All @@ -31,12 +29,11 @@
"-Werror",
"-Iflamingo/runtime",
"-Wno-unused-parameter",
"-D_DEFAULT_SOURCE",
"-o",
"bin/main.o",
"main.c"
],
"directory": "/Users/aymeric/flamingo/flamingo",
"file": "main.c"
}
]
]
3 changes: 1 addition & 2 deletions flamingo/flamingo.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 971eeed

Please sign in to comment.