]> Cypherpunks repositories - gostls13.git/commit
build: test for _WIN32, not _MINGW32
authorJoe Poirier <jdpoirier@gmail.com>
Thu, 9 Sep 2010 02:20:35 +0000 (22:20 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 9 Sep 2010 02:20:35 +0000 (22:20 -0400)
commite21b3a40ac76b5ca4659fc7cfbbd8c5d04a6bf04
tree75bedd729aaaf112810a4b93ea04541821c802e0
parentfce222a95be321920db7f1a3285361ffec295483
build: test for _WIN32, not _MINGW32

Use OS rather than compiler specific flag the same way that
__FreeBSD__, __APPLE__, __OpenBSD__, and __linux__ are used.

_WIN32 is defined by GCC (and others) on windows for Win32
and Win64 applications. _WIN32 is set by default for several
other windows based compilers: DMC, MSVC, Intel, Watcom, LCC.

Although the change is for consistency, it allows the Go tools
to be compiled with non-Mingw GCC distributions and non-GCC
compilers that support the GCC extensions.

R=rsc, brainman, vcc
CC=golang-dev
https://golang.org/cl/2168043
src/cmd/cc/lex.c
src/cmd/godefs/main.c
src/lib9/dirfwstat.c
src/lib9/dirstat.c
src/lib9/time.c
src/libbio/bseek.c
src/libcgo/386.S
src/libcgo/amd64.S