Just use the standard inline keyword with sufficient backwards compatibility defines, similar to how it is done in the main decoder and encoder libraries.
Showing the changes to codec/processing/src/common/memory.h (1 of 3 files). Show all
Unified · Split
| @@ -47,15 +47,15 @@ · 46 unmodified lines | |||
| 47 | 47 | ||
| 48 | WELSVP_NAMESPACE_BEGIN | 48 | WELSVP_NAMESPACE_BEGIN |
| 49 | 49 | ||
| 50 | inline_t void* WelsMemset (void* pPointer, int32_t iValue, uint32_t uiSize) { | 50 | inline void* WelsMemset (void* pPointer, int32_t iValue, uint32_t uiSize) { |
| 51 | return ::memset (pPointer, iValue, uiSize); | 51 | return ::memset (pPointer, iValue, uiSize); |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | inline_t void* WelsMemcpy (void* pDst, const void* kpSrc, uint32_t uiSize) { | 54 | inline void* WelsMemcpy (void* pDst, const void* kpSrc, uint32_t uiSize) { |
| 55 | return ::memcpy (pDst, kpSrc, uiSize); | 55 | return ::memcpy (pDst, kpSrc, uiSize); |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | inline_t int32_t WelsMemcmp (const void* kpBuf1, const void* kpBuf2, uint32_t uiSize) { | 58 | inline int32_t WelsMemcmp (const void* kpBuf1, const void* kpBuf2, uint32_t uiSize) { |
| 59 | return ::memcmp (kpBuf1, kpBuf2, uiSize); | 59 | return ::memcmp (kpBuf1, kpBuf2, uiSize); |
| 60 | } | 60 | } |
| 61 | 61 | ||