| 1637 | } |
| 1638 | |
| 1639 | static FILE* callfopen( const char* filepath, const char* mode ) { |
| 1640 | TIXMLASSERT( filepath ); |
| 1641 | TIXMLASSERT( mode ); |
| 1642 | #if defined(_MSC_VER) && (_MSC_VER >= 1400 ) && (!defined WINCE) |
| 1643 | FILE* fp = 0; |
| 1644 | errno_t err = fopen_s( &fp, filepath, mode ); |
| 1645 | if ( err ) { |
| 1646 | return 0; |
| 1647 | } |
| 1648 | #else |
| 1649 | FILE* fp = fopen( filepath, mode ); |
| 1650 | #endif |
| 1651 | return fp; |
| 1652 | } |
| 1653 | |
| 1654 | void XMLDocument::DeleteNode( XMLNode* node ) { |
| 1655 | TIXMLASSERT( node ); |