mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-07 10:00:27 +00:00
[Flang] Fix compilation on MinGW-w64
Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D94707
This commit is contained in:
parent
a0c9ec1f5e
commit
8cfe9c02a0
@ -14,12 +14,12 @@
|
||||
#include <cstring>
|
||||
#include <fcntl.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#ifdef _WIN32
|
||||
#define NOMINMAX
|
||||
#include <io.h>
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
@ -131,7 +131,7 @@ int main(int argc_, const char **argv_) {
|
||||
// information if possible.
|
||||
isCrash = CommandRes < 0;
|
||||
#ifdef _WIN32
|
||||
IsCrash |= CommandRes == 3;
|
||||
isCrash |= CommandRes == 3;
|
||||
#endif
|
||||
if (isCrash) {
|
||||
theDriver.generateCompilationDiagnostics(*c, *failingCommand);
|
||||
|
Loading…
x
Reference in New Issue
Block a user