If this doesn't work, I'll write a configure test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52213
91177308-0d34-0410-b5e6-
96231b3b80d8
+#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR >= 4)
#include <ext/stdio_filebuf.h>
// FIXME: Control this with configure? Provide some portable abstraction in
#include <ext/stdio_filebuf.h>
// FIXME: Control this with configure? Provide some portable abstraction in
+#else
+
+int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int FileHandle) {
+ return -1; // Not supported.
+}
+