| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
cmake: Fix Windows static build BUILD_SHARED_LIBS is a CMake variable. Due to how MSVC exports and imports symbols from DLLs*, we still need to appropriately define symbols so that __declspec(dllexport) and __declspec(dllimport) are used properly, and also so that they're *not* used when building statically, to avoid MSVC and LINK warnings LNK4217 and LNK4286, and errors C2734, LNK2019, and LNK1120. Do this by defining the compile-time definition ENABLE_STATIC (not to be confused with the previous CMake variable ENABLE_STATIC) whenever BUILD_SHARED_LIBS is set to OFF, and also defining ENABLE_STATIC specifically for the static version of wsutil and dumpcap / writecap that use it. Also, eliminate some non-fatal warnings that occurred before by defining WSUTIL_EXPORT to just be extern in the all static case. Fixup 67bb36a181f9e643533bbfc96f52207edb47de0c * - Data and functions are not directly exported, there's indirection through an address table, but the appearance of direct export can be obtained via syntactic sugar, See https://learn.microsoft.com/en-us/cpp/build/importing-data-using-declspec-dllimport https://learn.microsoft.com/en-us/cpp/c-language/rules-and-limitations-for-dllimport-dllexport https://gcc.gnu.org/onlinedocs/gcc/Microsoft-Windows-Function-Attributes.html | 1 年前 | |
Replace hand-rolled equivalents with WS_ROUNDUP_n() and WS_PADDING_TO_n(). If it's just rounding a value up to a multiple of n, use WS_ROUNDUP_n(); otherwise, use WS_PADDING_TO_n(). | 1 年前 | |
Support for writing compressed captures on the fly Add support for writing compressed captures on the fly (gzip and LZ4, as supported for compressing while writing elsewhere) through writecap, by linking in file_wrappers statically. Remove the "compress a multiple file (but not ringbuffer) capture at file rotation time" option in preference to this. Fix #9311. Fix #19159 | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 |