| 2123 | } |
| 2124 | |
| 2125 | static FILE* callfopen( const char* filepath, const char* mode ) |
| 2126 | { |
| 2127 | TIXMLASSERT( filepath ); |
| 2128 | TIXMLASSERT( mode ); |
| 2129 | #if defined(_MSC_VER) && (_MSC_VER >= 1400 ) && (!defined WINCE) |
| 2130 | FILE* fp = 0; |
| 2131 | errno_t err = fopen_s( &fp, filepath, mode ); |
| 2132 | if ( err ) { |
| 2133 | return 0; |
| 2134 | } |
| 2135 | #else |
| 2136 | FILE* fp = fopen( filepath, mode ); |
| 2137 | #endif |
| 2138 | return fp; |
| 2139 | } |
| 2140 | |
| 2141 | void XMLDocument::DeleteNode( XMLNode* node ) { |
| 2142 | TIXMLASSERT( node ); |