| 2308 | } |
| 2309 | |
| 2310 | static FILE* callfopen( const char* filepath, const char* mode ) |
| 2311 | { |
| 2312 | TIXMLASSERT( filepath ); |
| 2313 | TIXMLASSERT( mode ); |
| 2314 | #if defined(_MSC_VER) && (_MSC_VER >= 1400 ) && (!defined WINCE) |
| 2315 | FILE* fp = 0; |
| 2316 | const errno_t err = fopen_s( &fp, filepath, mode ); |
| 2317 | if ( err ) { |
| 2318 | return 0; |
| 2319 | } |
| 2320 | #else |
| 2321 | FILE* fp = fopen( filepath, mode ); |
| 2322 | #endif |
| 2323 | return fp; |
| 2324 | } |
| 2325 | |
| 2326 | void XMLDocument::DeleteNode( XMLNode* node ) { |
| 2327 | TIXMLASSERT( node ); |