clang compile

This commit is contained in:
Alex Fabijanic
2018-01-31 19:34:43 -06:00
parent e143bdce35
commit 66f122b35f
3 changed files with 15 additions and 3 deletions

View File

@@ -8,6 +8,7 @@
#define JSON_FLAG_ERROR (1u << 0)
#define JSON_FLAG_STREAMING (1u << 1)
// patched for poco 1.8.x (VS 2008)
#if defined(_MSC_VER) && (_MSC_VER < 1900)

View File

@@ -6,11 +6,20 @@ extern "C" {
#endif // __cplusplus
#include <stdio.h>
#if !defined(_MSC_VER) // for poco 1.8.x we must compile as C++
#if !defined(__cplusplus) && !defined(_MSC_VER) // for poco 1.8.x we must compile as C++
#if defined(__STDC_VERSION__) || (__STDC_VERSION__ >= 199901L)
#include <stdbool.h>
#else
typedef enum { false, true } bool;
#ifndef bool
#define bool int
#endif
#ifndef true
#define true 1
#endif
#ifndef false
#define false 0
#endif
#endif // __STDC_VERSION__
#endif