2013-12-03 18:16:48 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2013 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*
|
|
|
|
* A common place to put the jsoncpp library includes, as opposed to littering
|
|
|
|
* the pragmas repeatedly through our code.
|
|
|
|
*/
|
|
|
|
#ifndef SkJSONCPP_DEFINED
|
|
|
|
#define SkJSONCPP_DEFINED
|
|
|
|
|
2015-01-14 13:02:39 +00:00
|
|
|
#ifdef GOOGLE3
|
|
|
|
#include "third_party/jsoncpp/reader.h"
|
|
|
|
#include "third_party/jsoncpp/value.h"
|
|
|
|
#include "third_party/jsoncpp/writer.h"
|
|
|
|
#else
|
|
|
|
#ifdef SK_BUILD_FOR_WIN
|
|
|
|
// json includes xlocale which generates warning 4530 because we're
|
|
|
|
// compiling without exceptions;
|
|
|
|
// see https://code.google.com/p/skia/issues/detail?id=1067
|
|
|
|
#pragma warning(push)
|
|
|
|
#pragma warning(disable : 4530)
|
|
|
|
#endif
|
|
|
|
#include "json/reader.h"
|
|
|
|
#include "json/value.h"
|
|
|
|
#include "json/writer.h"
|
|
|
|
#ifdef SK_BUILD_FOR_WIN
|
|
|
|
#pragma warning(pop)
|
|
|
|
#endif
|
2013-12-03 18:16:48 +00:00
|
|
|
#endif
|
|
|
|
|
2014-05-16 13:15:41 +00:00
|
|
|
#endif // SkJSONCPP_DEFINED
|