diff --git a/System/Win32/Types.hsc b/System/Win32/Types.hsc
--- a/System/Win32/Types.hsc
+++ b/System/Win32/Types.hsc
@@ -277,13 +277,13 @@
 
 -- Originally authored by Max Bolingbroke in the ansi-terminal library
 withHandleToHANDLE :: Handle -> (HANDLE -> IO a) -> IO a
-#if defined(__IO_MANAGER_WINIO__)
+##if defined(__IO_MANAGER_WINIO__)
 withHandleToHANDLE = withHandleToHANDLEPosix <!> withHandleToHANDLENative
-#else
+##else
 withHandleToHANDLE = withHandleToHANDLEPosix
-#endif
+##endif
 
-#if defined(__IO_MANAGER_WINIO__)
+##if defined(__IO_MANAGER_WINIO__)
 withHandleToHANDLENative :: Handle -> (HANDLE -> IO a) -> IO a
 withHandleToHANDLENative haskell_handle action =
     -- Create a stable pointer to the Handle. This prevents the garbage collector
@@ -293,7 +293,7 @@
         windows_handle <- handleToHANDLE haskell_handle
         -- Do what the user originally wanted
         action windows_handle
-#endif
+##endif
 
 withHandleToHANDLEPosix :: Handle -> (HANDLE -> IO a) -> IO a
 withHandleToHANDLEPosix haskell_handle action =
diff --git a/Win32.cabal b/Win32.cabal
--- a/Win32.cabal
+++ b/Win32.cabal
@@ -1,5 +1,5 @@
 name:           Win32
-version:        2.12.0.0
+version:        2.12.0.1
 license:        BSD3
 license-file:   LICENSE
 author:         Alastair Reid, shelarcy, Tamar Christina
diff --git a/changelog.md b/changelog.md
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,9 @@
 # Changelog for [`Win32` package](http://hackage.haskell.org/package/Win32)
 
+## 2.12.0.1 June 2021
+
+* A small fix for WinIO usage. See #177
+
 ## 2.12.0.0 March 2021
 
 * Win32 for GHC 9.2.x
