Menu

TinyXML support for Xbox 1 & 2 out of the box

Developer
2005-11-07
2013-05-20
  • Dáire Stockdale

    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

     
    • Lee Thomason

      Lee Thomason - 2005-11-13

      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.

MongoDB Logo MongoDB