diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2015-10-26 20:42:30 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-10-26 21:42:57 +0100 |
commit | 23e344bbbd27418bb84bdc588374b3e44f6d23a6 (patch) | |
tree | e621ef8fc81eedfbc9f2ff45a7688d9cd41efb77 /rts/RtsMessages.c | |
parent | 73c273af193f56ea339d423e79d803bea5f45db5 (diff) | |
download | haskell-23e344bbbd27418bb84bdc588374b3e44f6d23a6.tar.gz |
Remove cygwin32_HOST_OS #ifdefs
Build system support for Cygwin was removed in b6be81b841.
Test Plan:
- Validate on x86_64/linux
- Cross-compile rts/RtsSymbols.c and rts/Linker.c to Windows using the
i686-w64-mingw32-gcc and x86_64-w64-mingw32-gcc cross compilers.
Reviewers: hvr, austin, bgamari
Reviewed By: bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1371
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]; |