| 2248 | } |
| 2249 | |
| 2250 | static FILE* callfopen( const char* filepath, const char* mode ) |
| 2251 | { |
| 2252 | TIXMLASSERT( filepath ); |
| 2253 | TIXMLASSERT( mode ); |
| 2254 | #if defined(_MSC_VER) && (_MSC_VER >= 1400 ) && (!defined WINCE) |
| 2255 | FILE* fp = 0; |
| 2256 | const errno_t err = fopen_s( &fp, filepath, mode ); |
| 2257 | if ( err ) { |
| 2258 | return 0; |
| 2259 | } |
| 2260 | #else |
| 2261 | FILE* fp = fopen( filepath, mode ); |
| 2262 | #endif |
| 2263 | return fp; |
| 2264 | } |
| 2265 | |
| 2266 | void XMLDocument::DeleteNode( XMLNode* node ) { |
| 2267 | TIXMLASSERT( node ); |