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

Unified Diff: runtime/include/dart_api.h

Issue 15907020: - Define bool on Windows when not compiling C++. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_api.h
===================================================================
--- runtime/include/dart_api.h (revision 23494)
+++ runtime/include/dart_api.h (working copy)
@@ -26,6 +26,11 @@
#if defined(__CYGWIN__)
#error Tool chain and platform not supported.
#elif defined(_WIN32)
Søren Gjesse 2013/06/03 10:57:32 Not part of this chhange, but shouldn't this be _M
Cutch 2013/06/03 14:52:21 I believe you're correct. It's MSVC that lacks sup
Ivan Posva 2013/06/03 15:42:52 As you can see below with all of the other int typ
+// Define bool if necessary.
+#ifndef __cplusplus
+typedef unsigned __int8 bool;
+#endif
+// Define integer types.
typedef signed __int8 int8_t;
typedef signed __int16 int16_t;
typedef signed __int32 int32_t;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698