Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(53)

Issue 2168043: code review 2168043: Use OS rather than compiler specific flag the same way that (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 6 months ago by Joe Poirier
Modified:
14 years, 6 months ago
Reviewers:
brainman
CC:
rsc, vcc, golang-dev
Visibility:
Public.

Description

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.

Patch Set 1 #

Patch Set 2 : code review 2168043: Use OS rather than compiler specific flag the same way that #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -9 lines) Patch
M src/cmd/cc/lex.c View 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/godefs/main.c View 1 chunk +1 line, -1 line 0 comments Download
M src/lib9/dirfwstat.c View 1 chunk +1 line, -1 line 0 comments Download
M src/lib9/dirstat.c View 1 chunk +1 line, -1 line 0 comments Download
M src/lib9/time.c View 2 chunks +2 lines, -2 lines 0 comments Download
M src/libbio/bseek.c View 1 chunk +1 line, -1 line 0 comments Download
M src/libcgo/386.S View 1 chunk +1 line, -1 line 0 comments Download
M src/libcgo/amd64.S View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
Joe Poirier
Hello rsc, brainman, vcc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 6 months ago (2010-09-09 00:05:58 UTC) #1
rsc1
LGTM
14 years, 6 months ago (2010-09-09 02:05:16 UTC) #2
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=3a7564295618 *** build: test for _WIN32, not _MINGW32 Use OS rather than ...
14 years, 6 months ago (2010-09-09 02:20:37 UTC) #3
brainman
14 years, 6 months ago (2010-09-09 03:04:51 UTC) #4
LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b