00001 /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: 00002 * 00003 * JSON Library, originally from http://jsoncpp.sourceforge.net/ 00004 * 00005 * Copyright (C) 2011 Stewart Smith 00006 * All rights reserved. 00007 * 00008 * Redistribution and use in source and binary forms, with or without 00009 * modification, are permitted provided that the following conditions are 00010 * met: 00011 * 00012 * * Redistributions of source code must retain the above copyright 00013 * notice, this list of conditions and the following disclaimer. 00014 * 00015 * * Redistributions in binary form must reproduce the above 00016 * copyright notice, this list of conditions and the following disclaimer 00017 * in the documentation and/or other materials provided with the 00018 * distribution. 00019 * 00020 * * The names of its contributors may not be used to endorse or 00021 * promote products derived from this software without specific prior 00022 * written permission. 00023 * 00024 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00025 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00026 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00027 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 00028 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00029 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00030 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00031 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00032 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00033 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00034 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00035 * 00036 */ 00037 00038 #pragma once 00039 #ifndef JSON_CONFIG_H_INCLUDED 00040 # define JSON_CONFIG_H_INCLUDED 00041 00043 //# define JSON_IN_CPPTL 1 00044 00046 //# define JSON_USE_CPPTL 1 00049 //# define JSON_USE_CPPTL_SMALLMAP 1 00053 //# define JSON_VALUE_USE_INTERNAL_MAP 1 00058 //# define JSON_USE_SIMPLE_INTERNAL_ALLOCATOR 1 00059 00062 # define JSON_USE_EXCEPTION 1 00063 00064 # ifdef JSON_IN_CPPTL 00065 # include <cpptl/config.h> 00066 # ifndef JSON_USE_CPPTL 00067 # define JSON_USE_CPPTL 1 00068 # endif 00069 # endif 00070 00071 # ifdef JSON_IN_CPPTL 00072 # define JSON_API CPPTL_API 00073 # elif defined(JSON_DLL_BUILD) 00074 # define JSON_API __declspec(dllexport) 00075 # elif defined(JSON_DLL) 00076 # define JSON_API __declspec(dllimport) 00077 # else 00078 # define JSON_API 00079 # endif 00080 00081 #endif // JSON_CONFIG_H_INCLUDED