mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-01-14 01:47:54 +08:00
COMP: Prefer the C++ headers over the C99 headers
Using the C++11 headers keeps the library cleaner and more rigorously scoped use of namespaces.
This commit is contained in:
parent
5c8e539af4
commit
e50bfefef1
@ -7,7 +7,7 @@
|
||||
#define CPPTL_JSON_ASSERTIONS_H_INCLUDED
|
||||
|
||||
#include <sstream>
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
|
||||
#if !defined(JSON_IS_AMALGAMATION)
|
||||
#include "config.h"
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
#ifndef JSON_CONFIG_H_INCLUDED
|
||||
#define JSON_CONFIG_H_INCLUDED
|
||||
#include <stddef.h>
|
||||
#include <stdint.h> //typedef int64_t, uint64_t
|
||||
#include <cstddef>
|
||||
#include <cstdint> //typedef int64_t, uint64_t
|
||||
#include <string> //typedef String
|
||||
|
||||
/// If defined, indicates that json library is embedded in CppTL library.
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <algorithm> // sort
|
||||
#include <json/json.h>
|
||||
#include <sstream>
|
||||
#include <stdio.h>
|
||||
#include <cstdio>
|
||||
|
||||
struct Options {
|
||||
JSONCPP_STRING path;
|
||||
|
@ -10,7 +10,7 @@
|
||||
#endif // if !defined(JSON_IS_AMALGAMATION)
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
#ifdef JSON_USE_CPPTL
|
||||
|
@ -28,8 +28,8 @@
|
||||
#endif
|
||||
|
||||
#else
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#if !defined(isnan)
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS 1 // Prevents deprecation warning with MSVC
|
||||
#include "jsontest.h"
|
||||
#include <stdio.h>
|
||||
#include <cstdio>
|
||||
#include <string>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include <json/value.h>
|
||||
#include <json/writer.h>
|
||||
#include <sstream>
|
||||
#include <stdio.h>
|
||||
#include <cstdio>
|
||||
#include <string>
|
||||
|
||||
// //////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user