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.

This commit is contained in:
Khyber Sen
2022-06-28 09:49:22 -07:00
committed by Thiago Macieira
parent 0a488a5714
commit 590c28a004
2 changed files with 0 additions and 2 deletions
-1
View File
@@ -25,7 +25,6 @@
#define _BSD_SOURCE 1
#define _DEFAULT_SOURCE 1
#define _GNU_SOURCE 1
#define _POSIX_C_SOURCE 200809L
#ifndef __STDC_LIMIT_MACROS
# define __STDC_LIMIT_MACROS 1
#endif
-1
View File
@@ -22,7 +22,6 @@
**
****************************************************************************/
#define _POSIX_C_SOURCE 200809L
#define _GNU_SOURCE
#include "cbor.h"
#include "cborinternal_p.h"