| 2276 | } |
| 2277 | |
| 2278 | static FILE* callfopen( const char* filepath, const char* mode ) |
| 2279 | { |
| 2280 | TIXMLASSERT( filepath ); |
| 2281 | TIXMLASSERT( mode ); |
| 2282 | #if defined(_MSC_VER) && (_MSC_VER >= 1400 ) && (!defined WINCE) |
| 2283 | FILE* fp = 0; |
| 2284 | const errno_t err = fopen_s( &fp, filepath, mode ); |
| 2285 | if ( err ) { |
| 2286 | return 0; |
| 2287 | } |
| 2288 | #else |
| 2289 | FILE* fp = fopen( filepath, mode ); |
| 2290 | #endif |
| 2291 | return fp; |
| 2292 | } |
| 2293 | |
| 2294 | void XMLDocument::DeleteNode( XMLNode* node ) { |
| 2295 | TIXMLASSERT( node ); |