| 268 | #ifndef _WIN32 |
| 269 | |
| 270 | inline errno_t fopen_s( FILE** stream, char const* fileName, char const* mode ) |
| 271 | { |
| 272 | *stream = fopen( fileName, mode ); |
| 273 | if( !*stream ) |
| 274 | { |
| 275 | auto error = errno; |
| 276 | return error ? error : -1; |
| 277 | } |
| 278 | return 0; |
| 279 | } |
| 280 | |
| 281 | #endif |
no outgoing calls