bundleloader.h, which is included if MACOS is defined, defines inline functions that reference bundle loading system functions, which requires linking to the core foundation framework. Avoid requiring linking to extra libraries/frameworks if NO_DYNAMIC_VP is defined.
Unified · Split
| @@ -30,6 +30,7 @@ · 29 unmodified lines | ||
| 30 | 30 | * |
| 31 | 31 | */ |
| 32 | 32 | |
| 33 | +#ifndef NO_DYNAMIC_VP | |
| 33 | 34 | #if defined(_WIN32) |
| 34 | 35 | #include <windows.h> |
| 35 | 36 | #elif defined(MACOS) |
| @@ -37,6 +38,7 @@ · 1 unmodified line | ||
| 37 | 38 | #elif defined(__GNUC__) |
| 38 | 39 | #include <dlfcn.h> |
| 39 | 40 | #endif |
| 41 | +#endif | |
| 40 | 42 | |
| 41 | 43 | #include <stdio.h> |
| 42 | 44 | #include <stdlib.h> |