blob: 32ae4950f3cacee31f264000e0f72e34b7318957 [file] [log] [blame]
commit-bot@chromium.orge3bb3bc2013-12-03 18:16:48 +00001/*
2 * Copyright 2013 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 *
7 * A common place to put the jsoncpp library includes, as opposed to littering
8 * the pragmas repeatedly through our code.
9 */
10#ifndef SkJSONCPP_DEFINED
11#define SkJSONCPP_DEFINED
12
Mike Klein6613cc52017-12-19 09:09:33 -050013#ifdef SK_BUILD_FOR_GOOGLE3
mtklein3f915c02015-01-14 05:02:39 -080014 #include "third_party/jsoncpp/reader.h"
15 #include "third_party/jsoncpp/value.h"
16 #include "third_party/jsoncpp/writer.h"
17#else
18 #ifdef SK_BUILD_FOR_WIN
19 // json includes xlocale which generates warning 4530 because we're
20 // compiling without exceptions;
21 // see https://code.google.com/p/skia/issues/detail?id=1067
22 #pragma warning(push)
23 #pragma warning(disable : 4530)
24 #endif
25 #include "json/reader.h"
26 #include "json/value.h"
27 #include "json/writer.h"
28 #ifdef SK_BUILD_FOR_WIN
29 #pragma warning(pop)
30 #endif
commit-bot@chromium.orge3bb3bc2013-12-03 18:16:48 +000031#endif
32
commit-bot@chromium.org61744ec2014-05-16 13:15:41 +000033#endif // SkJSONCPP_DEFINED