diff options
Diffstat (limited to 'rts/RtsMessages.c')
-rw-r--r-- | rts/RtsMessages.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/rts/RtsMessages.c b/rts/RtsMessages.c index b3d8f94b48..c74e3387f1 100644 --- a/rts/RtsMessages.c +++ b/rts/RtsMessages.c @@ -108,7 +108,7 @@ vdebugBelch(const char*s, va_list ap) #define BUFSIZE 512 -#if defined(cygwin32_HOST_OS) || defined (mingw32_HOST_OS) +#if defined (mingw32_HOST_OS) static int isGUIApp(void) { @@ -133,7 +133,7 @@ isGUIApp(void) void GNU_ATTRIBUTE(__noreturn__) rtsFatalInternalErrorFn(const char *s, va_list ap) { -#if defined(cygwin32_HOST_OS) || defined (mingw32_HOST_OS) +#if defined (mingw32_HOST_OS) if (isGUIApp()) { char title[BUFSIZE], message[BUFSIZE]; @@ -174,7 +174,7 @@ rtsFatalInternalErrorFn(const char *s, va_list ap) void rtsErrorMsgFn(const char *s, va_list ap) { -#if defined(cygwin32_HOST_OS) || defined (mingw32_HOST_OS) +#if defined (mingw32_HOST_OS) if (isGUIApp()) { char buf[BUFSIZE]; @@ -206,7 +206,7 @@ rtsSysErrorMsgFn(const char *s, va_list ap) { char *syserr; -#if defined(cygwin32_HOST_OS) || defined (mingw32_HOST_OS) +#if defined (mingw32_HOST_OS) FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | @@ -245,7 +245,7 @@ rtsSysErrorMsgFn(const char *s, va_list ap) } vfprintf(stderr, s, ap); if (syserr) { -#if defined(cygwin32_HOST_OS) || defined (mingw32_HOST_OS) +#if defined (mingw32_HOST_OS) // Win32 error messages have a terminating \n fprintf(stderr, ": %s", syserr); #else @@ -256,7 +256,7 @@ rtsSysErrorMsgFn(const char *s, va_list ap) } } -#if defined(cygwin32_HOST_OS) || defined (mingw32_HOST_OS) +#if defined (mingw32_HOST_OS) if (syserr) LocalFree(syserr); #endif } @@ -264,7 +264,7 @@ rtsSysErrorMsgFn(const char *s, va_list ap) void rtsDebugMsgFn(const char *s, va_list ap) { -#if defined(cygwin32_HOST_OS) || defined (mingw32_HOST_OS) +#if defined (mingw32_HOST_OS) if (isGUIApp()) { char buf[BUFSIZE]; |