Debian Codegraph @

win/include/HsWin32.h

raw
1 #ifndef _ANSI_TERMINAL_HSWIN32_H
2 #define _ANSI_TERMINAL_HSWIN32_H
3
4 #define UNICODE
5 #include <windows.h>
6
7 /* Copied from the Win32-2.13.4.0 package, but renamed `castUINTPtrToPtr` to
8 * `_ansi_terminal_castUINTPtrToPtr`, in order to avoid problems with duplicate
9 * symbols in GHC's object files. See:
10 * https://gitlab.haskell.org/ghc/ghc/-/issues/23365.
11 */
12
13 #ifndef INLINE
14 # if defined(_MSC_VER)
15 # define INLINE extern __inline
16 # else
17 # define INLINE extern inline
18 # endif
19 #endif
20
21 INLINE void *_ansi_terminal_castUINTPtrToPtr(UINT_PTR n) { return (void *)n; }
22
23 #endif /* _ANSI_TERMINAL_HSWIN32_H */