shithub: openh264

Download patch

ref: 36f96cb766a83a82e2fef7cdbbc7bcd2cd47d3c8
parent: efaa153bb15c78159d8315d45a3e53c391549697
author: Martin Storsjö <martin@martin.st>
date: Tue Jan 21 16:13:55 EST 2014

Don't include the headers for dynamically loading the VP library if NO_DYNAMIC_VP is defined

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.

--- a/codec/encoder/core/src/wels_preprocess.cpp
+++ b/codec/encoder/core/src/wels_preprocess.cpp
@@ -30,6 +30,7 @@
  *
  */
 
+#ifndef NO_DYNAMIC_VP
 #if defined(_WIN32)
 #include <windows.h>
 #elif defined(MACOS)
@@ -36,6 +37,7 @@
 #include "bundleloader.h"
 #elif defined(__GNUC__)
 #include <dlfcn.h>
+#endif
 #endif
 
 #include <stdio.h>