Skip to content

Commit b8122e1

Browse files
committed
Do not include windows_cconv.h on non mingw32 systems
Do not include windows_cconv.h on non windows systems, or else build fails with `#error Unknown mingw32 arch` on architectures other than i386 or x86_64.
1 parent d877ba5 commit b8122e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

GUI/GtkExtras.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ import Foreign
1515
import Foreign.C
1616
import Control.Concurrent.MVar
1717

18-
#if !(mingw32_HOST_OS || mingw32_TARGET_OS)
18+
#if mingw32_HOST_OS || mingw32_TARGET_OS
19+
#include "windows_cconv.h"
20+
#else
1921
import System.Glib.GError
2022
import Control.Monad
2123
#endif
2224

23-
#include "windows_cconv.h"
24-
2525
waitGUI :: IO ()
2626
waitGUI = do
2727
resultVar <- newEmptyMVar

0 commit comments

Comments
 (0)