Skip to content

Commit

Permalink
64-bit support for Mac OS X in base.
Browse files Browse the repository at this point in the history
BUG=44127, 18323
TEST=64-bit base should all (mostly) build
Review URL: http://codereview.chromium.org/6708096

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79069 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
mark@chromium.org committed Mar 22, 2011
1 parent fc4facd commit a50634a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions base/basictypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ typedef short int16;
typedef int int32;
#endif

// The NSPR system headers define 64-bit as |long| when possible. In order to
// not have typedef mismatches, we do the same on LP64.
#if __LP64__
// The NSPR system headers define 64-bit as |long| when possible, except on
// Mac OS X. In order to not have typedef mismatches, we do the same on LP64.
//
// On Mac OS X, |long long| is used for 64-bit types for compatibility with
// <inttypes.h> format macros even in the LP64 model.
#if __LP64__ && !defined(OS_MACOSX)
typedef long int64;
#else
typedef long long int64;
Expand All @@ -51,7 +54,7 @@ typedef unsigned int uint32;
#endif

// See the comment above about NSPR and 64-bit.
#if __LP64__
#if __LP64__ && !defined(OS_MACOSX)
typedef unsigned long uint64;
#else
typedef unsigned long long uint64;
Expand Down

0 comments on commit a50634a

Please sign in to comment.