Changed definition of INT64_C and UINT64_C to use the one in stdint.h.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 5 May 2009 09:50:29 +0000 (09:50 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 5 May 2009 09:50:29 +0000 (09:50 +0000)
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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1858 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

include/v8.h
src/globals.h

index 6d18261..f992f0b 100644 (file)
@@ -77,7 +77,9 @@ typedef unsigned __int64 uint64_t;
 #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
index 35208c4..71bb78e 100644 (file)
@@ -54,9 +54,6 @@ typedef byte* Address;
 #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.