blob: 0582e8f5a99393229dbc90505929195904727253 [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
commit-bot@chromium.org61744ec2014-05-16 13:15:41 +000013#ifdef SK_BUILD_JSON_WRITER
14
commit-bot@chromium.orge3bb3bc2013-12-03 18:16:48 +000015#ifdef SK_BUILD_FOR_WIN
16 // json includes xlocale which generates warning 4530 because we're
17 // compiling without exceptions;
18 // see https://code.google.com/p/skia/issues/detail?id=1067
19 #pragma warning(push)
20 #pragma warning(disable : 4530)
21#endif
22#include "json/reader.h"
23#include "json/value.h"
commit-bot@chromium.org97133ad2014-05-20 17:35:10 +000024#include "json/writer.h"
commit-bot@chromium.orge3bb3bc2013-12-03 18:16:48 +000025#ifdef SK_BUILD_FOR_WIN
26 #pragma warning(pop)
27#endif
28
commit-bot@chromium.org61744ec2014-05-16 13:15:41 +000029#endif // SK_BUILD_JSON_WRITER
30
31#endif // SkJSONCPP_DEFINED