mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-02 15:41:36 +02:00
clang compile
This commit is contained in:
parent
e143bdce35
commit
66f122b35f
@ -13,7 +13,9 @@ POCO_SOURCES_AUTO( SRCS ${SRCS_G})
|
|||||||
file(GLOB_RECURSE HDRS_G "include/*.h" )
|
file(GLOB_RECURSE HDRS_G "include/*.h" )
|
||||||
POCO_HEADERS_AUTO( SRCS ${HDRS_G})
|
POCO_HEADERS_AUTO( SRCS ${HDRS_G})
|
||||||
POCO_SOURCES(SRCS pdjson src/pdjson.c)
|
POCO_SOURCES(SRCS pdjson src/pdjson.c)
|
||||||
SET_SOURCE_FILES_PROPERTIES(src/pdjson.c PROPERTIES LANGUAGE CXX)
|
if(WIN32)
|
||||||
|
SET_SOURCE_FILES_PROPERTIES(src/pdjson.c PROPERTIES LANGUAGE CXX)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_library( "${LIBNAME}" ${LIB_MODE} ${SRCS} )
|
add_library( "${LIBNAME}" ${LIB_MODE} ${SRCS} )
|
||||||
add_library( "${POCO_LIBNAME}" ALIAS "${LIBNAME}")
|
add_library( "${POCO_LIBNAME}" ALIAS "${LIBNAME}")
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
#define JSON_FLAG_ERROR (1u << 0)
|
#define JSON_FLAG_ERROR (1u << 0)
|
||||||
#define JSON_FLAG_STREAMING (1u << 1)
|
#define JSON_FLAG_STREAMING (1u << 1)
|
||||||
|
|
||||||
|
|
||||||
// patched for poco 1.8.x (VS 2008)
|
// patched for poco 1.8.x (VS 2008)
|
||||||
#if defined(_MSC_VER) && (_MSC_VER < 1900)
|
#if defined(_MSC_VER) && (_MSC_VER < 1900)
|
||||||
|
|
||||||
|
@ -6,11 +6,20 @@ extern "C" {
|
|||||||
#endif // __cplusplus
|
#endif // __cplusplus
|
||||||
|
|
||||||
#include <stdio.h>
|
#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)
|
#if defined(__STDC_VERSION__) || (__STDC_VERSION__ >= 199901L)
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#else
|
#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 // __STDC_VERSION__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user