Menu

#1 Patch to compile ver 1.12 for MSVC2005

open
nobody
None
5
2009-01-29
2009-01-29
Arnost
No

Without this patch has MS Visual Studio 2005 problem to compile rapidxml.hpp.

file rapidxml.hpp
line 374:

//! \cond internal
- typedef void *(alloc_func)(std::size_t); // Type of user-defined function used to allocate memory
typedef void (free_func)(void *); // Type of user-defined function used to free memory
//! \endcond

//! \cond internal
+ typedef void* VOIDP;
+ typedef VOIDP (alloc_func)(std::size_t); // Type of user-defined function used to allocate memory
typedef void (free_func)(void *); // Type of user-defined function used to free memory
//! \endcond

Discussion


Log in to post a comment.