Skip to content

Commit 7fdc2df

Browse files
committed
Porting: Add __MINGW32__ and __MINGW64__
1 parent fadf5d1 commit 7fdc2df

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

web/wiki/Porting.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ Identifier | Platform(s) | Usage
3030
---------------------|----------------------------|----------------------------
3131
`_WIN32` | mingw, msvc | C code (`#ifdef ...`)
3232
`_WIN64` | 64-bit mingw, 64-bit msvc | C code (`#ifdef ...`)
33+
`__MINGW32__` | mingw | C code (`#ifdef ...`)
34+
`__MINGW64__` | 64-bit mingw | C code (`#ifdef ...`)
3335
`__CYGWIN__` | msys2, cygwin | C code (`#ifdef ...`)
3436
`__MSYS__` | msys2 | C code (`#ifdef ...`)
3537
`x86_64-pc-msys2` | 64-bit msys2 | Build scripts (`if [ $host = '...' ]`)
@@ -39,6 +41,8 @@ Identifier | Platform(s) | Usage
3941
`cygwin` | msys2 | Python (`sys.platform`)
4042
`win32` | mingw | Python (`sys.platform`)
4143

44+
("mingw" here includes all non-msys environments: mingw, clang, ucrt)
45+
4246
Filesystem namespaces
4347
---------------------
4448

0 commit comments

Comments
 (0)