MinGW compilation fixes.

This commit is contained in:
David Nadlinger
2013-02-11 08:27:01 +01:00
parent 3662b06a88
commit f417500abc
4 changed files with 5 additions and 3 deletions

View File

@@ -365,7 +365,7 @@ extern Global global;
/* Set if Windows Structured Exception Handling C extensions are supported.
* Apparently, VC has dropped support for these?
*/
#define WINDOWS_SEH _WIN32
#define WINDOWS_SEH (_WIN32 && !defined(__MINGW32__))
#include "longdouble.h"

View File

@@ -29,7 +29,7 @@
#include <utime.h>
#endif
#if _MSC_VER
#if _MSC_VER || defined(__MINGW32__)
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>

View File

@@ -14,6 +14,8 @@
#if __sun || _MSC_VER
#include <alloca.h>
#elif __MINGW32__
#include <malloc.h>
#endif
#include "speller.h"

View File

@@ -411,7 +411,7 @@ int runExecutable()
int status = executeToolAndWait(gExePath, opts::runargs, global.params.verbose);
if (status < 0)
{
#if defined(_MSC_VER)
#if defined(_MSC_VER) || defined(__MINGW32__)
error("program received signal %d", -status);
#else
error("program received signal %d (%s)", -status, strsignal(-status));