зеркало из https://github.com/mozilla/pjs.git
Bug 712198 - Remove NS_WIN32, NS_UNIX and NS_OS2. r=khuey
This commit is contained in:
Родитель
ec97749ceb
Коммит
d3d9745abf
|
@ -37,18 +37,6 @@
|
|||
#ifndef ubase_h__
|
||||
#define ubase_h__
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifndef NS_WIN32
|
||||
#define NS_WIN32 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__unix)
|
||||
#ifndef NS_UNIX
|
||||
#define NS_UNIX 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "prtypes.h"
|
||||
|
||||
#define PRIVATE
|
||||
|
|
|
@ -66,18 +66,6 @@ typedef size_t(*nsMallocSizeOfFun)(const void *p, size_t computedSize);
|
|||
|
||||
/* Core XPCOM declarations. */
|
||||
|
||||
/**
|
||||
* Macros defining the target platform...
|
||||
*/
|
||||
#ifdef _WIN32
|
||||
#define NS_WIN32 1
|
||||
|
||||
#elif defined(__unix)
|
||||
#define NS_UNIX 1
|
||||
|
||||
#elif defined(XP_OS2)
|
||||
#define NS_OS2 1
|
||||
#endif
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* Import/export defines */
|
||||
|
||||
|
@ -171,7 +159,7 @@ typedef size_t(*nsMallocSizeOfFun)(const void *p, size_t computedSize);
|
|||
#define NS_CONSTRUCTOR_FASTCALL
|
||||
#endif
|
||||
|
||||
#ifdef NS_WIN32
|
||||
#ifdef XP_WIN
|
||||
|
||||
#define NS_IMPORT __declspec(dllimport)
|
||||
#define NS_IMPORT_(type) __declspec(dllimport) type __stdcall
|
||||
|
@ -395,7 +383,7 @@ typedef PRUint32 nsrefcnt;
|
|||
* commercial build. When this is fixed there will be no need for the
|
||||
* |reinterpret_cast| in nsLiteralString.h either.
|
||||
*/
|
||||
#if defined(HAVE_CPP_2BYTE_WCHAR_T) && defined(NS_WIN32)
|
||||
#if defined(HAVE_CPP_2BYTE_WCHAR_T) && defined(XP_WIN)
|
||||
typedef wchar_t PRUnichar;
|
||||
#else
|
||||
typedef PRUint16 PRUnichar;
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
#include "nsCRT.h"
|
||||
#include "nsUTF8Utils.h"
|
||||
#include <fcntl.h>
|
||||
#if defined(NS_WIN32)
|
||||
#if defined(XP_WIN)
|
||||
#include <io.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
|
|
Загрузка…
Ссылка в новой задаче