Skip to content

Commit 8616527

Browse files
author
Mitsutoshi Aoe
authored
Merge pull request #79 from iliastsi/no-windows-cconv
Do not include windows_cconv.h on non mingw32 systems
2 parents d877ba5 + b8122e1 commit 8616527

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)