mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 777511 - #define nullptr __null for gcc <= 4.5. r=ehsan
--HG-- extra : rebase_source : dd24e15d4b271d7ae1f604b6d7e4d0e76f614f40
This commit is contained in:
parent
10cb95a2ae
commit
9cadd9aabc
@ -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"
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
Loading…
Reference in New Issue
Block a user