FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.
C++ ai-agentsalgorithmic-tradingbloomberg-terminalcppfinancefinancial-marketsfintechgood-first-issueinvestmentinvestment-researchmachine-learningopensourcepythonqtquantitative-financestock-markettrading
Fix macOS/Linux link failure: only define Z_PREFIX on Windows
Simon0d5c5134699e
diff --git a/fincept-qt/src/trading/instruments/InstrumentDecompress.cpp b/fincept-qt/src/trading/instruments/InstrumentDecompress.cppindex bc9ad60f9..1747da68d 100644--- a/fincept-qt/src/trading/instruments/InstrumentDecompress.cpp+++ b/fincept-qt/src/trading/instruments/InstrumentDecompress.cpp@@ -10,7 +10,9 @@// shadows it on the include path (e.g. a PostgreSQL install whose include dir// precedes QtZlib), the unprefixed symbols won't link. Define it ourselves so// inflate() → z_inflate() regardless of which standard zlib.h is picked up.-#ifndef Z_PREFIX+// On macOS/Linux we link the system zlib (ZLIB::ZLIB in CMakeLists.txt),+// whose symbols are unprefixed — so only define Z_PREFIX on Windows.+#if defined(_WIN32) && !defined(Z_PREFIX)# define Z_PREFIX#endif#include <zlib.h>