summaryrefslogtreecommitdiff
path: root/rc/tools/python
diff options
context:
space:
mode:
authorNicolas Ouellet-payeur <nicolaso@google.com>2020-10-16 14:09:18 -0400
committerNicolas Ouellet-payeur <nicolaso@google.com>2020-10-19 09:36:25 -0400
commit4a59db1bd1cb39e7fde0d9a37eccf184042b457b (patch)
tree07b5028d9dd71bdd64af290b6573d4084e82ea23 /rc/tools/python
parent1de058cdf8d5aadbe617aa39f20c9c959e3db269 (diff)
Fix wcwidth() compile error with MSYS2
We try to detect when compiling under Cygwin, so we can set the _XOPEN_SOURCE define which lets us use wcwidth(). We look for the string "CYGWIN" in the uname, which looks like: CYGWIN_NT-10.0 MSYS2 is also based on Cygwin, so all of the above should still work. However, we detect Cygwin by looking for the string "CYGWIN" in the uname. In MSYS2, the uname looks like: MSYS_NT-10.0-18362 This patch looks for the string "_NT" instead of the string "CYGWIN" in the uname, since it's common to both environments. This fixes a compilation error on MSYS2.
Diffstat (limited to 'rc/tools/python')
0 files changed, 0 insertions, 0 deletions