Hello
Changing these lines in 'tinyxml.h'
#if defined( DEBUG ) && defined( _MSC_VER ) #include <windows.h> #define TIXML_LOG OutputDebugString #else #define TIXML_LOG printf #endif
to these:
#if defined( DEBUG ) && defined( _MSC_VER ) # ifdef WIN32 # include <windows.h> # define TIXML_LOG OutputDebugString # else # ifdef _XBOX # include <xtl.h> # define TIXML_LOG OutputDebugString # else // MSC compiler, not Win32 or Xbox project though. # define TIXML_LOG printf # endif # endif #else # define TIXML_LOG printf #endif
...will allow TinyXML to be compiled without changes on Xbox/Xenon. Its a popular product for game developers too. Keep up the good work.
- solosnake
Those are only used inside of "DEBUG_PARSER" which normally isn't turned on. I moved it out of the header so it won't even show up.
thanks, lee
Log in to post a comment.
Hello
Changing these lines in 'tinyxml.h'
#if defined( DEBUG ) && defined( _MSC_VER )
#include <windows.h>
#define TIXML_LOG OutputDebugString
#else
#define TIXML_LOG printf
#endif
to these:
#if defined( DEBUG ) && defined( _MSC_VER )
# ifdef WIN32
# include <windows.h>
# define TIXML_LOG OutputDebugString
# else
# ifdef _XBOX
# include <xtl.h>
# define TIXML_LOG OutputDebugString
# else
// MSC compiler, not Win32 or Xbox project though.
# define TIXML_LOG printf
# endif
# endif
#else
# define TIXML_LOG printf
#endif
...will allow TinyXML to be compiled without changes on Xbox/Xenon. Its a popular product for game developers too. Keep up the good work.
- solosnake
Those are only used inside of "DEBUG_PARSER" which normally isn't turned on. I moved it out of the header so it won't even show up.
thanks,
lee