diff --git a/intl/uconv/util/ubase.h b/intl/uconv/util/ubase.h index 143e93032b70..226f4e518cfe 100644 --- a/intl/uconv/util/ubase.h +++ b/intl/uconv/util/ubase.h @@ -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 diff --git a/xpcom/base/nscore.h b/xpcom/base/nscore.h index 63bde044458a..21721621229b 100644 --- a/xpcom/base/nscore.h +++ b/xpcom/base/nscore.h @@ -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; diff --git a/xpcom/io/nsUnicharInputStream.cpp b/xpcom/io/nsUnicharInputStream.cpp index 2e0b1f45e606..b7a560102ead 100644 --- a/xpcom/io/nsUnicharInputStream.cpp +++ b/xpcom/io/nsUnicharInputStream.cpp @@ -45,7 +45,7 @@ #include "nsCRT.h" #include "nsUTF8Utils.h" #include -#if defined(NS_WIN32) +#if defined(XP_WIN) #include #else #include