From bc98c9e585ea45c976eab0bc67e9e47617105f2e Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Mon, 31 Aug 2009 13:40:20 +0000 Subject: 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 --- src/pugixml.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/pugixml.cpp') 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; -- cgit v1.2.3