mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 08:31:43 +02:00
clang compile
This commit is contained in:
@@ -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)
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user