1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/skia/trunk/include/utils/SkJSONCPP.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +/* 1.5 + * Copyright 2013 Google Inc. 1.6 + * 1.7 + * Use of this source code is governed by a BSD-style license that can be 1.8 + * found in the LICENSE file. 1.9 + * 1.10 + * A common place to put the jsoncpp library includes, as opposed to littering 1.11 + * the pragmas repeatedly through our code. 1.12 + */ 1.13 +#ifndef SkJSONCPP_DEFINED 1.14 +#define SkJSONCPP_DEFINED 1.15 + 1.16 +#ifdef SK_BUILD_FOR_WIN 1.17 + // json includes xlocale which generates warning 4530 because we're 1.18 + // compiling without exceptions; 1.19 + // see https://code.google.com/p/skia/issues/detail?id=1067 1.20 + #pragma warning(push) 1.21 + #pragma warning(disable : 4530) 1.22 +#endif 1.23 +#include "json/reader.h" 1.24 +#include "json/value.h" 1.25 +#ifdef SK_BUILD_FOR_WIN 1.26 + #pragma warning(pop) 1.27 +#endif 1.28 + 1.29 +#endif