diff options
author | Joe Poirier <jdpoirier@gmail.com> | 2010-09-08 22:20:35 -0400 |
---|---|---|
committer | Joe Poirier <jdpoirier@gmail.com> | 2010-09-08 22:20:35 -0400 |
commit | a9c5a56d466e65b772c2284803646f54b27348ad (patch) | |
tree | 25424241a09185f37e639ccca19fe5d89f92ff73 /src/libbio | |
parent | 9fbc3d5a2d06801bda4848c9e8d3d04ff10ed821 (diff) | |
download | go-a9c5a56d466e65b772c2284803646f54b27348ad.tar.gz |
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
http://codereview.appspot.com/2168043
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/libbio')
-rw-r--r-- | src/libbio/bseek.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libbio/bseek.c b/src/libbio/bseek.c index be00ab1a7..291498108 100644 --- a/src/libbio/bseek.c +++ b/src/libbio/bseek.c @@ -33,7 +33,7 @@ Bseek(Biobuf *bp, vlong offset, int base) vlong n, d; int bufsz; -#ifndef __MINGW32__ +#ifndef _WIN32 if(sizeof(offset) != sizeof(off_t)) { fprint(2, "Bseek: libbio compiled with %d-byte offset\n", sizeof(off_t)); abort(); |