diff options
author | Takayuki Matsuoka <t-mat@users.noreply.github.com> | 2022-08-12 20:39:25 (GMT) |
---|---|---|
committer | Takayuki Matsuoka <t-mat@users.noreply.github.com> | 2022-08-12 20:39:25 (GMT) |
commit | ae179a9c16aba4dc3b6adefd440c9b77bda1a785 (patch) | |
tree | 91b26c4201894ed819632a1525c15fa1b1c09c38 | |
parent | ff4b136ab87a525ce814d350b66677bfe3eabe9b (diff) | |
download | lz4-ae179a9c16aba4dc3b6adefd440c9b77bda1a785.zip lz4-ae179a9c16aba4dc3b6adefd440c9b77bda1a785.tar.gz lz4-ae179a9c16aba4dc3b6adefd440c9b77bda1a785.tar.bz2 |
Add note about RC_INVOKED
-rw-r--r-- | lib/lz4.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -311,6 +311,19 @@ LZ4LIB_API int LZ4_decompress_safe_partial (const char* src, char* dst, int srcS ***********************************************/ typedef union LZ4_stream_u LZ4_stream_t; /* incomplete type (defined later) */ +/** + Note about RC_INVOKED + + - RC_INVOKED is predefined symbol of rc.exe (the resource compiler which is part of MSVC/Visual Studio). + https://docs.microsoft.com/en-us/windows/win32/menurc/predefined-macros + + - Since rc.exe is a legacy compiler, it truncates long symbol (> 30 chars) + and reports warning "RC4011: identifier truncated". + + - To eliminate the warning, we surround long preprocessor symbol with + "#if !defined(RC_INVOKED) ... #endif" block that means + "skip this block when rc.exe is trying to read it". +*/ #if !defined(RC_INVOKED) /* https://docs.microsoft.com/en-us/windows/win32/menurc/predefined-macros */ #if !defined(LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION) LZ4LIB_API LZ4_stream_t* LZ4_createStream(void); |