diff --git a/src/cborencoder.c b/src/cborencoder.c index fc12d570..de0a8847 100644 --- a/src/cborencoder.c +++ b/src/cborencoder.c @@ -22,8 +22,12 @@ ** ****************************************************************************/ +#ifndef _BSD_SOURCE #define _BSD_SOURCE 1 +#endif +#ifndef _DEFAULT_SOURCE #define _DEFAULT_SOURCE 1 +#endif #ifndef __STDC_LIMIT_MACROS # define __STDC_LIMIT_MACROS 1 #endif diff --git a/src/cborparser.c b/src/cborparser.c index b7d413bb..8aa12983 100644 --- a/src/cborparser.c +++ b/src/cborparser.c @@ -22,8 +22,12 @@ ** ****************************************************************************/ +#ifndef _BSD_SOURCE #define _BSD_SOURCE 1 +#endif +#ifndef _DEFAULT_SOURCE #define _DEFAULT_SOURCE 1 +#endif #ifndef __STDC_LIMIT_MACROS # define __STDC_LIMIT_MACROS 1 #endif diff --git a/src/cborparser_dup_string.c b/src/cborparser_dup_string.c index 64f3884b..66a908e5 100644 --- a/src/cborparser_dup_string.c +++ b/src/cborparser_dup_string.c @@ -22,8 +22,12 @@ ** ****************************************************************************/ +#ifndef _BSD_SOURCE #define _BSD_SOURCE 1 +#endif +#ifndef _DEFAULT_SOURCE #define _DEFAULT_SOURCE 1 +#endif #ifndef __STDC_LIMIT_MACROS # define __STDC_LIMIT_MACROS 1 #endif