6613cc5186
This is more consistent with our other SK_BUILD_FOR_... macros, and less likely to collide with other preprocessor logic. (Luckily, this was defined in public.bzl, so we can do this all in one CL in the Skia repo.) Change-Id: I5f232888288c9c53fad445545d983d0fb0b4add8 Reviewed-on: https://skia-review.googlesource.com/86940 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Mike Klein <mtklein@chromium.org>
34 lines
972 B
C
34 lines
972 B
C
/*
|
|
* 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
|
|
|
|
#ifdef SK_BUILD_FOR_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
|
|
#endif
|
|
|
|
#endif // SkJSONCPP_DEFINED
|