Skip to content

Commit 590c28a

Browse files
kkysenthiagomacieira
authored andcommitted
Removed #define _POSIX_C_SOURCEs where #define _GNU_SOURCE was also defined, as _GNU_SOURCE implicitly defines _POSIX_C_SOURCE, but on BSD/macOS, _POSIX_C_SOURCE prevents non-POSIX extensions from being defined.
1 parent 0a488a5 commit 590c28a

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/cbortojson.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#define _BSD_SOURCE 1
2626
#define _DEFAULT_SOURCE 1
2727
#define _GNU_SOURCE 1
28-
#define _POSIX_C_SOURCE 200809L
2928
#ifndef __STDC_LIMIT_MACROS
3029
# define __STDC_LIMIT_MACROS 1
3130
#endif

tools/json2cbor/json2cbor.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
**
2323
****************************************************************************/
2424

25-
#define _POSIX_C_SOURCE 200809L
2625
#define _GNU_SOURCE
2726
#include "cbor.h"
2827
#include "cborinternal_p.h"

0 commit comments

Comments
 (0)