This avoids ifdefs at each place the macro is used.
Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 5 files). Show all
Unified · Split
| @@ -2100,17 +2100,7 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar · 2099 unmodified lines | ||
| 2100 | 2100 | #endif//_MSC_VER |
| 2101 | 2101 | |
| 2102 | 2102 | |
| 2103 | −#if defined(__GNUC__) | |
| 2104 | − pCtx->pFileLog = FOPEN (fname, "wt+"); | |
| 2105 | −#else//WIN32 | |
| 2106 | −#if defined(_WIN32) && defined(_MSC_VER) | |
| 2107 | −#if _MSC_VER >= 1500 | |
| 2108 | − FOPEN (&pCtx->pFileLog, fname, "wt+"); | |
| 2109 | −#else | |
| 2110 | − pCtx->pFileLog = FOPEN (fname, "wt+"); | |
| 2111 | −#endif//_MSC_VER>=1500 | |
| 2112 | −#endif//WIN32 && _MSC_VER | |
| 2113 | −#endif//__GNUC__ | |
| 2103 | + pCtx->pFileLog = WelsFopen (fname, "wt+"); | |
| 2114 | 2104 | pCtx->uiSizeLog = 0; |
| 2115 | 2105 | } |
| 2116 | 2106 | #endif//ENABLE_TRACE_FILE |