Skip to content

Can you make jsoncpp support C++ Builder by default? #269

@gzliudan

Description

@gzliudan

According to Victor Chen's blog(http://www.cppfans.com/sdk/json/jsoncpp.asp), we can use jsoncpp under C++ Builder platform after below two steps:

  1. move below lines to the end of class ValueIteratorBase in the file value.h
public:
ValueIteratorBase();
explicit ValueIteratorBase(const Value::ObjectValues::iterator& current);
  1. add below lines to the file writer.cpp:
#if defined(__BORLANDC__)  
#include <float.h>
#define isfinite _finite
#define snprintf _snprintf
#endif

I have tested jsoncpp under C++ Builder XE5, XE6, XE7, it works fine. Thank victor chen for his smart work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions