mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-05 02:07:56 +00:00
Better test for availability of __gnu_cxx::stdio_filebuf.
If this doesn't work, I'll write a configure test. llvm-svn: 52213
This commit is contained in:
parent
511d6a5cd3
commit
22f7a6eb91
@ -28,7 +28,7 @@ int LLVMWriteBitcodeToFile(LLVMModuleRef M, const char *Path) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#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
|
||||
@ -49,4 +49,10 @@ int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int FileHandle) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int FileHandle) {
|
||||
return -1; // Not supported.
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user