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 | #if defined(_WIN32) | 34 | #if defined(_WIN32) |
| 34 | #include <windows.h> | 35 | #include <windows.h> |
| 35 | #elif defined(MACOS) | 36 | #elif defined(MACOS) |
| @@ -37,6 +38,7 @@ · 1 unmodified line | |||
| 37 | #elif defined(__GNUC__) | 38 | #elif defined(__GNUC__) |
| 38 | #include <dlfcn.h> | 39 | #include <dlfcn.h> |
| 39 | #endif | 40 | #endif |
| 41 | #endif | ||
| 40 | 42 | ||
| 41 | #include <stdio.h> | 43 | #include <stdio.h> |
| 42 | #include <stdlib.h> | 44 | #include <stdlib.h> |