Compare commits

..

1 Commits

Author SHA1 Message Date
Max Bruckner
b68e159e5f Disable non-standard C extensions 2018-08-12 11:19:49 +02:00
2 changed files with 18 additions and 1 deletions

17
cJSON.c
View File

@@ -37,6 +37,23 @@
#pragma warning (disable : 4001)
#endif
/* Disable some non-standard functionality */
#ifdef _POSIX_SOURCE
#undef _POSIX_SOURCE
#endif
#ifdef _POSIX_C_SOURCE
#undef _POSIX_C_SOURCE
#endif
#ifdef _XOPEN_SOURCE
#undef _XOPEN_SOURCE
#endif
#ifdef _GNU_SOURCE
#undef _GNU_SOURCE
#endif
#ifdef _DEFAULT_SOURCE
#undef _DEFAULT_SOURCE
#endif
#include <string.h>
#include <stdio.h>
#include <math.h>

View File

@@ -63,7 +63,7 @@
* you're going to want to define this. That way, Unity will know to skip the
* inclusion of this file and you won't be left with a compiler error.
*/
#define UNITY_EXCLUDE_STDINT_H
/* #define UNITY_EXCLUDE_STDINT_H */
/* ********************** MANUAL INTEGER TYPE DEFINITION ***********************
* If you've disabled all of the automatic options above, you're going to have