@ -8,5 +8,5 @@ endif
export USEMODULE += periph
ifeq ($(shell uname -s),Darwin)
export CFLAGS += -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE
export CFLAGS += -D_XOPEN_SOURCE=600 -D_DARWIN_C_SOURCE
endif
@ -1,6 +1,9 @@
MODULE = cbor
CFLAGS += -DCBOR_NO_PRINT
ifneq ($(shell uname -s),Darwin)
CFLAGS += -D_XOPEN_SOURCE=600
ifeq (,$(filter native,$(BOARD)))
# build the minimal subset for non-native
@ -101,11 +101,6 @@
#ifndef CBOR_H
#define CBOR_H
#ifndef CBOR_NO_CTIME
/* 'strptime' is only declared when this macro is defined */
#define _XOPEN_SOURCE
#endif
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>