Remove obsolete _IMPL_NS_NET and NS_NET defines (bug 159887). r=cls, sr=bzbarsky, a=asa.

git-svn-id: svn://10.0.0.236/trunk@126038 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%netscape.com
2002-07-30 02:25:08 +00:00
parent 6659aafe5f
commit 157f6e484f
45 changed files with 19 additions and 69 deletions

View File

@@ -214,7 +214,6 @@ CFLAGS=$(CFLAGS) -D_IMPL_NS_HTMLPARS
CFLAGS=$(CFLAGS) -D_IMPL_NS_INTL
CFLAGS=$(CFLAGS) -D_IMPL_NS_LAYOUT
CFLAGS=$(CFLAGS) -D_IMPL_NS_MSG_BASE
CFLAGS=$(CFLAGS) -D_IMPL_NS_NET
CFLAGS=$(CFLAGS) -D_IMPL_NS_PICS
CFLAGS=$(CFLAGS) -D_IMPL_NS_PLUGIN
CFLAGS=$(CFLAGS) -D_IMPL_NS_RDF

View File

@@ -44,7 +44,6 @@ FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -44,7 +44,6 @@ FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -98,21 +98,6 @@
#define NS_ERROR_REDIRECT_LOOP \
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 31)
#undef NS_NET
#ifdef _IMPL_NS_NET
#if defined(XP_PC) && !defined(XP_OS2)
#define NS_NET _declspec(dllexport)
#else /* !XP_PC */
#define NS_NET
#endif /* !XP_PC */
#else /* !_IMPL_NS_NET */
#if defined(XP_PC) && !defined(XP_OS2)
#define NS_NET _declspec(dllimport)
#else /* !XP_PC */
#define NS_NET
#endif /* !XP_PC */
#endif /* !_IMPL_NS_NET */
// Where most necko status messages come from:
#define NECKO_MSGS_URL "chrome://necko/locale/necko.properties"

View File

@@ -94,8 +94,6 @@ FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
# For fruncate
ifeq ($(OS_ARCH),Linux)
DEFINES += -D_BSD_SOURCE

View File

@@ -31,7 +31,7 @@ REQUIRES = xpcom \
$(NULL)
include <$(DEPTH)/config/config.mak>
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
LIBRARY_NAME=neckobase_s

View File

@@ -98,7 +98,6 @@ EXTRA_DSO_LDOPTS = \
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -40,7 +40,7 @@ REQUIRES = xpcom \
include <$(DEPTH)/config/config.mak>
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
EXPORTS = \
nsNetCID.h \

View File

@@ -61,7 +61,6 @@ EXTRA_DSO_LDOPTS = \
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -30,7 +30,7 @@ REQUIRES = xpcom \
necko \
$(NULL)
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
CPP_OBJS= \
.\$(OBJDIR)\nsNetModule2.obj \

View File

@@ -70,7 +70,6 @@ EXTRA_DSO_LDOPTS = $(MOZ_COMPONENT_LIBS)
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -32,7 +32,7 @@ REQUIRES = xpcom \
include <$(DEPTH)/config/config.mak>
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
EXPORTS = \
nsCacheService.h \

View File

@@ -46,7 +46,6 @@ ifeq ($(OS_ARCH), Linux)
DEFINES += -D_BSD_SOURCE
endif
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -25,7 +25,7 @@ REQUIRES = xpcom \
string \
pref \
$(NULL)
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
LIBRARY_NAME=neckodns_s

View File

@@ -20,7 +20,4 @@
* Contributor(s):
*/
/* Defining the following causes NS_NET to be defined as NS_EXPORT. */
#define _IMPL_NS_NET
#include "MacSharedPrefix.h"

View File

@@ -20,8 +20,5 @@
* Contributor(s):
*/
/* Defining the following causes NS_NET to be defined as NS_EXPORT. */
#define _IMPL_NS_NET
#include "MacSharedPrefix_debug.h"

View File

@@ -46,7 +46,6 @@ FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -34,7 +34,7 @@ LLIBS= $(LLIBS) \
$(LIBNSPR) \
$(NULL)
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
CPP_OBJS = \
.\$(OBJDIR)\nsMIMEInfoImpl.obj \

View File

@@ -51,7 +51,6 @@ FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -32,7 +32,7 @@ include <$(DEPTH)/config/config.mak>
LIBRARY_NAME=nkabout_s
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
CPP_OBJS= \
.\$(OBJDIR)\nsAboutProtocolHandler.obj \

View File

@@ -43,7 +43,6 @@ FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -26,7 +26,7 @@ REQUIRES = xpcom \
LIBRARY_NAME=nkdata_s
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
CPP_OBJS = \
.\$(OBJDIR)\nsDataHandler.obj \

View File

@@ -44,7 +44,6 @@ FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -27,7 +27,7 @@ REQUIRES= xpcom \
LIBRARY_NAME=nkdatetm_s
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
CPP_OBJS = \
.\$(OBJDIR)\nsDateTimeHandler.obj \

View File

@@ -46,7 +46,6 @@ FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -31,7 +31,7 @@ include <$(DEPTH)/config/config.mak>
LIBRARY_NAME=nkfile_s
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
CPP_OBJS= \
.\$(OBJDIR)\nsFileChannel.obj \

View File

@@ -44,7 +44,6 @@ FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -28,7 +28,7 @@ REQUIRES= xpcom \
LIBRARY_NAME=nkfinger_s
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
CPP_OBJS = \
.\$(OBJDIR)\nsFingerHandler.obj \

View File

@@ -58,7 +58,6 @@ FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
ifndef MOZ_DEBUG

View File

@@ -32,7 +32,7 @@ DEPTH = ..\..\..\..
LIBRARY_NAME=nkftp_s
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
!ifndef MOZ_DEBUG
!ifndef NO_LOGGING

View File

@@ -45,7 +45,6 @@ FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -29,7 +29,7 @@ REQUIRES = xpcom \
LIBRARY_NAME=nkgopher_s
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
CPP_OBJS = \
.\$(OBJDIR)\nsGopherHandler.obj \

View File

@@ -64,7 +64,6 @@ FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -37,7 +37,7 @@ include <$(DEPTH)/config/config.mak>
LIBRARY_NAME=nkhttp_s
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
CPP_OBJS= \
.\$(OBJDIR)\nsHttp.obj \

View File

@@ -51,7 +51,6 @@ FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -34,7 +34,7 @@ REQUIRES = xpcom \
LIBRARY_NAME=nkjar_s
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
CPP_OBJS= \
.\$(OBJDIR)\nsJARURI.obj \

View File

@@ -49,7 +49,6 @@ LOCAL_INCLUDES = \
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -28,7 +28,7 @@ REQUIRES = xpcom \
LIBRARY_NAME=nkres_s
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
CPP_OBJS= \
.\$(OBJDIR)\nsResProtocolHandler.obj \

View File

@@ -45,7 +45,6 @@ FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -31,7 +31,7 @@ REQUIRES = xpcom \
LIBRARY_NAME=nkviewsource_s
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
CPP_OBJS = \
.\$(OBJDIR)\nsViewSourceHandler.obj \

View File

@@ -67,7 +67,6 @@ FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN -DZLIB_DLL
endif

View File

@@ -37,7 +37,7 @@ include <$(DEPTH)/config/config.mak>
LIBRARY_NAME=nkcnvts_s
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET -DZLIB_DLL
LCFLAGS = -DWIN32_LEAN_AND_MEAN -DZLIB_DLL
# Add this for performance TXT-HTML performance #'s: -DMOZ_PERF_METRICS
EXPORTS = \

View File

@@ -42,7 +42,6 @@ FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_NET
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DWIN32_LEAN_AND_MEAN
endif

View File

@@ -27,7 +27,7 @@ include <$(DEPTH)/config/config.mak>
LIBRARY_NAME=nkconv_s
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LCFLAGS = -DWIN32_LEAN_AND_MEAN
CPP_OBJS = \
.\$(OBJDIR)\nsStreamConverterService.obj \

View File

@@ -43,12 +43,6 @@
#define NS_BASE NS_IMPORT
#endif
#ifdef _IMPL_NS_NET
#define NS_NET NS_EXPORT
#else
#define NS_NET NS_IMPORT
#endif
#ifdef _IMPL_NS_DOM
#define NS_DOM NS_EXPORT
#else