Archived
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:
committed by
Thiago Macieira
parent
0a488a5714
commit
590c28a004
@@ -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
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#define _GNU_SOURCE
|
||||
#include "cbor.h"
|
||||
#include "cborinternal_p.h"
|
||||
|
||||
Reference in New Issue
Block a user