Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Issue 15907020: - Define bool on Windows when not compiling C++. (Closed)

Created:
7 years, 6 months ago by Ivan Posva
Modified:
7 years, 6 months ago
Reviewers:
Søren Gjesse, Cutch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

- Define bool on Windows when not compiling C++. Committed: https://code.google.com/p/dart/source/detail?r=23497

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M runtime/include/dart_api.h View 1 chunk +5 lines, -0 lines 3 comments Download

Messages

Total messages: 5 (0 generated)
Ivan Posva
7 years, 6 months ago (2013-05-31 22:18:16 UTC) #1
Ivan Posva
Committed patchset #1 manually as r23497 (presubmit successful).
7 years, 6 months ago (2013-05-31 22:18:32 UTC) #2
Søren Gjesse
https://codereview.chromium.org/15907020/diff/1/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://codereview.chromium.org/15907020/diff/1/runtime/include/dart_api.h#newcode28 runtime/include/dart_api.h:28: #elif defined(_WIN32) Not part of this chhange, but shouldn't ...
7 years, 6 months ago (2013-06-03 10:57:32 UTC) #3
Cutch
https://codereview.chromium.org/15907020/diff/1/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://codereview.chromium.org/15907020/diff/1/runtime/include/dart_api.h#newcode28 runtime/include/dart_api.h:28: #elif defined(_WIN32) On 2013/06/03 10:57:32, Søren Gjesse wrote: > ...
7 years, 6 months ago (2013-06-03 14:52:21 UTC) #4
Ivan Posva
7 years, 6 months ago (2013-06-03 15:42:52 UTC) #5
Message was sent while issue was closed.
-Ivan

https://codereview.chromium.org/15907020/diff/1/runtime/include/dart_api.h
File runtime/include/dart_api.h (right):

https://codereview.chromium.org/15907020/diff/1/runtime/include/dart_api.h#ne...
runtime/include/dart_api.h:28: #elif defined(_WIN32)
On 2013/06/03 14:52:21, Cutch wrote:
> On 2013/06/03 10:57:32, Søren Gjesse wrote:
> > Not part of this chhange, but shouldn't this be _MSC_VER instead of _WIN32?
> 
> I believe you're correct. It's MSVC that lacks support for stdbool not the
WIN32
> platform.

As you can see below with all of the other int types, it is assumed that _WIN32
and !__CYGWIN__ expects a non-C99 based compiler such as MSVC.

__CYGWIN__ is not supported at the moment and is caught a couple of lines
further up.

So I am leaving this as it is for now. If we really get somebody trying to build
on Windows with some other toolchain than MSVC, then we can address it then.

Powered by Google App Engine
This is Rietveld 408576698