mirror of
https://github.com/fltk/fltk.git
synced 2026-03-24 07:54:00 +08:00
As discussed between Matthias, Albrecht and Manolo, the best procedure is - use MAC_OS_X_VERSION_MAX_ALLOWED but not __MAC_OS_X_VERSION_MAX_ALLOWED; - compile helper file CMake /macOSMaxAllowed.c to detect whether the SDK in use is in version above a given threshold version number; - based upon the result of this check, decide to weakly link or not a given framework.
7 lines
195 B
C
7 lines
195 B
C
|
|
#include <AvailabilityMacros.h>
|
|
#if MAC_OS_X_VERSION_MAX_ALLOWED < SDK_VERSION_CHECK
|
|
#error MAC_OS_X_VERSION_MAX_ALLOWED < SDK_VERSION_CHECK
|
|
#endif
|
|
int main(int argc, char** argv) { return 0; }
|