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:
Hans Johnson 2018-12-12 13:34:37 -06:00 committed by Christopher Dunn
parent 5c8e539af4
commit e50bfefef1
7 changed files with 9 additions and 9 deletions

View File

@ -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"

View File

@ -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.

View File

@ -16,7 +16,7 @@
#include <algorithm> // sort
#include <json/json.h>
#include <sstream>
#include <stdio.h>
#include <cstdio>
struct Options {
JSONCPP_STRING path;

View File

@ -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

View File

@ -28,8 +28,8 @@
#endif
#else
#include <math.h>
#include <stdio.h>
#include <cmath>
#include <cstdio>
#if defined(_MSC_VER)
#if !defined(isnan)

View File

@ -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)

View File

@ -11,7 +11,7 @@
#include <json/value.h>
#include <json/writer.h>
#include <sstream>
#include <stdio.h>
#include <cstdio>
#include <string>
// //////////////////////////////////////////////////////////////////