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