Bug 777511 - #define nullptr __null for gcc <= 4.5. r=ehsan

--HG--
extra : rebase_source : dd24e15d4b271d7ae1f604b6d7e4d0e76f614f40
This commit is contained in:
Chris Peterson 2012-07-26 15:29:18 -07:00
parent 10cb95a2ae
commit 9cadd9aabc

View File

@ -329,7 +329,11 @@ typedef PRUint32 nsrefcnt;
* for C, fall back to longs. See bugs 547964 and 626472.
*/
#ifndef HAVE_NULLPTR
#if defined(_WIN64)
#ifndef __cplusplus
# define nullptr ((void*)0)
#elif defined(__GNUC__)
# define nullptr __null
#elif defined(_WIN64)
# define nullptr 0LL
#else
# define nullptr 0L
@ -338,7 +342,6 @@ typedef PRUint32 nsrefcnt;
#define nsnull nullptr
#include "nsError.h"
/* ------------------------------------------------------------------------ */