| 1778 | } |
| 1779 | |
| 1780 | static FILE* callfopen( const char* filepath, const char* mode ) |
| 1781 | { |
| 1782 | TIXMLASSERT( filepath ); |
| 1783 | TIXMLASSERT( mode ); |
| 1784 | #if defined(_MSC_VER) && (_MSC_VER >= 1400 ) && (!defined WINCE) |
| 1785 | FILE* fp = 0; |
| 1786 | errno_t err = fopen_s( &fp, filepath, mode ); |
| 1787 | if ( err ) { |
| 1788 | return 0; |
| 1789 | } |
| 1790 | #else |
| 1791 | FILE* fp = fopen( filepath, mode ); |
| 1792 | #endif |
| 1793 | return fp; |
| 1794 | } |
| 1795 | |
| 1796 | void XMLDocument::DeleteNode( XMLNode* node ) { |
| 1797 | TIXMLASSERT( node ); |