diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-08-31 13:40:20 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-08-31 13:40:20 +0000 |
commit | bc98c9e585ea45c976eab0bc67e9e47617105f2e (patch) | |
tree | 0c38911ddfe4fa809f5bbe54875e0897af9309d8 /src/pugixml.cpp | |
parent | 530b0dec2169e23b65bf160e2b4074f4b78d733b (diff) |
Added optional PUGIXML_API, PUGIXML_CLASS and PUGIXML_FUNCTION defines to control class/function attributes (DLL export/import, calling conventions, etc.)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@125 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r-- | src/pugixml.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 17dbddd..fc003e1 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -1685,13 +1685,13 @@ namespace pugi namespace impl
{
// Compare two strings
- int strcmp(const char* src, const char* dst)
+ int PUGIXML_FUNCTION strcmp(const char* src, const char* dst)
{
return ::strcmp(src, dst);
}
// Compare two strings, with globbing, and character sets.
- int strcmpwild(const char* src, const char* dst)
+ int PUGIXML_FUNCTION strcmpwild(const char* src, const char* dst)
{
int find = 1;
for(; *src != 0 && find == 1 && *dst != 0; ++src)
@@ -3058,7 +3058,7 @@ namespace pugi }
#ifndef PUGIXML_NO_STL
- std::string as_utf8(const wchar_t* str)
+ std::string PUGIXML_FUNCTION as_utf8(const wchar_t* str)
{
std::string result;
result.reserve(strutf16_utf8_size(str));
@@ -3073,7 +3073,7 @@ namespace pugi return result;
}
- std::wstring as_utf16(const char* str)
+ std::wstring PUGIXML_FUNCTION as_utf16(const char* str)
{
std::wstring result;
result.reserve(strutf8_utf16_size(str));
@@ -3089,7 +3089,7 @@ namespace pugi }
#endif
- void set_memory_management_functions(allocation_function allocate, deallocation_function deallocate)
+ void PUGIXML_FUNCTION set_memory_management_functions(allocation_function allocate, deallocation_function deallocate)
{
global_allocate = allocate;
global_deallocate = deallocate;
|