Author: l...@chromium.org
Date: Tue May  5 02:50:29 2009
New Revision: 1858

Modified:
    branches/bleeding_edge/include/v8.h
    branches/bleeding_edge/src/globals.h

Log:
Changed definition of INT64_C and UINT64_C to use the one in stdint.h.
Since Chromium build system appears to define __STDC_CONSTANT_MACROS, we  
might as well use the macro definitions from stdint.h in all cases.

Review URL: http://codereview.chromium.org/109016


Modified: branches/bleeding_edge/include/v8.h
==============================================================================
--- branches/bleeding_edge/include/v8.h (original)
+++ branches/bleeding_edge/include/v8.h Tue May  5 02:50:29 2009
@@ -77,7 +77,9 @@
  #endif  // BUILDING_V8_SHARED

  #else  // _WIN32
-
+#ifndef __STDC_CONSTANT_MACROS
+#define __STDC_CONSTANT_MACROS
+#endif
  #include <stdint.h>

  // Setup for Linux shared library export. There is no need to destinguish

Modified: branches/bleeding_edge/src/globals.h
==============================================================================
--- branches/bleeding_edge/src/globals.h        (original)
+++ branches/bleeding_edge/src/globals.h        Tue May  5 02:50:29 2009
@@ -54,9 +54,6 @@
  #ifdef _MSC_VER
  #define UINT64_C(x)  (x ## UI64)
  #define INT64_C(x)   (x ## I64)
-#else
-#define UINT64_C(x)  (x ## ULL)
-#define INT64_C(x)   (x ## LL)
  #endif

  // Code-point values in Unicode 4.0 are 21 bits wide.

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to