1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
5 #ifndef HEADER_PUGICONFIG_HPP
6 #define HEADER_PUGICONFIG_HPP
8 // Uncomment this to enable wchar_t mode
9 // #define PUGIXML_WCHAR_MODE
11 // Uncomment this to enable compact mode
12 // #define PUGIXML_COMPACT
14 // Uncomment this to disable XPath
15 // #define PUGIXML_NO_XPATH
17 // Uncomment this to disable STL
18 // #define PUGIXML_NO_STL
20 // Uncomment this to disable exceptions
21 // #define PUGIXML_NO_EXCEPTIONS
23 // Set this to control attributes for public classes/functions, i.e.:
24 // #define PUGIXML_API __declspec(dllexport) // to export all public symbols from DLL
25 // #define PUGIXML_CLASS __declspec(dllimport) // to import all classes from DLL
26 // #define PUGIXML_FUNCTION __fastcall // to set calling conventions to all public functions to fastcall
27 // In absence of PUGIXML_CLASS/PUGIXML_FUNCTION definitions PUGIXML_API is used instead
29 // Tune these constants to adjust memory-related behavior
30 // #define PUGIXML_MEMORY_PAGE_SIZE 32768
31 // #define PUGIXML_MEMORY_OUTPUT_STACK 10240
32 // #define PUGIXML_MEMORY_XPATH_PAGE_SIZE 4096
34 // Uncomment this to switch to header-only version
35 // #define PUGIXML_HEADER_ONLY
37 // Uncomment this to enable long long support
38 // #define PUGIXML_HAS_LONG_LONG
43 * Copyright (c) 2006-2016 Arseny Kapoulkine
45 * Permission is hereby granted, free of charge, to any person
46 * obtaining a copy of this software and associated documentation
47 * files (the "Software"), to deal in the Software without
48 * restriction, including without limitation the rights to use,
49 * copy, modify, merge, publish, distribute, sublicense, and/or sell
50 * copies of the Software, and to permit persons to whom the
51 * Software is furnished to do so, subject to the following
54 * The above copyright notice and this permission notice shall be
55 * included in all copies or substantial portions of the Software.
57 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
58 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
59 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
60 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
61 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
62 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
63 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
64 * OTHER DEALINGS IN THE SOFTWARE.