Implemented optional header-only mode (still need to do a couple of fixes for rare compilers, but it seems to work on the majority of configurations). Tests work in header-only mode, but testing is not enabled yet (still a bit more work to be done, and compiling header-only tests is up to 4 times slower, so we can't test more than one-two configurations per toolset)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@855 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
7df35dabd5
commit
2f6baa1005
@ -32,6 +32,10 @@
|
|||||||
// #define PUGIXML_FUNCTION __fastcall // to set calling conventions to all public functions to fastcall
|
// #define PUGIXML_FUNCTION __fastcall // to set calling conventions to all public functions to fastcall
|
||||||
// In absence of PUGIXML_CLASS/PUGIXML_FUNCTION definitions PUGIXML_API is used instead
|
// In absence of PUGIXML_CLASS/PUGIXML_FUNCTION definitions PUGIXML_API is used instead
|
||||||
|
|
||||||
|
// Header-only version
|
||||||
|
// #define PUGIXML_HEADER_ONLY
|
||||||
|
// #include "pugixml.cpp"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
1563
src/pugixml.cpp
1563
src/pugixml.cpp
File diff suppressed because it is too large
Load Diff
@ -11,15 +11,17 @@
|
|||||||
* Copyright (C) 2003, by Kristen Wegner (kristen@tima.net)
|
* Copyright (C) 2003, by Kristen Wegner (kristen@tima.net)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef HEADER_PUGIXML_HPP
|
#ifndef PUGIXML_VERSION
|
||||||
#define HEADER_PUGIXML_HPP
|
|
||||||
|
|
||||||
// Define version macro; evaluates to major * 100 + minor so that it's safe to use in less-than comparisons
|
// Define version macro; evaluates to major * 100 + minor so that it's safe to use in less-than comparisons
|
||||||
# define PUGIXML_VERSION 100
|
# define PUGIXML_VERSION 100
|
||||||
|
#endif
|
||||||
|
|
||||||
// Include user configuration file (this can define various configuration macros)
|
// Include user configuration file (this can define various configuration macros)
|
||||||
#include "pugiconfig.hpp"
|
#include "pugiconfig.hpp"
|
||||||
|
|
||||||
|
#ifndef HEADER_PUGIXML_HPP
|
||||||
|
#define HEADER_PUGIXML_HPP
|
||||||
|
|
||||||
// Include stddef.h for size_t and ptrdiff_t
|
// Include stddef.h for size_t and ptrdiff_t
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user