diff options
Diffstat (limited to 'memory')
-rw-r--r-- | memory/mozalloc/Makefile.in | 4 | ||||
-rw-r--r-- | memory/mozalloc/mozalloc.cpp | 2 | ||||
-rw-r--r-- | memory/mozalloc/mozalloc.h | 2 | ||||
-rw-r--r-- | memory/mozalloc/mozalloc_abort.cpp | 2 | ||||
-rw-r--r-- | memory/mozalloc/mozalloc_abort.h | 2 | ||||
-rw-r--r-- | memory/mozalloc/mozalloc_oom.cpp | 2 | ||||
-rw-r--r-- | memory/mozalloc/mozalloc_oom.h | 2 | ||||
-rw-r--r-- | memory/mozalloc/msvc_raise_wrappers.cpp | 2 | ||||
-rw-r--r-- | memory/mozalloc/msvc_throw_wrapper.cpp | 2 |
9 files changed, 9 insertions, 11 deletions
diff --git a/memory/mozalloc/Makefile.in b/memory/mozalloc/Makefile.in index cd8c062f5..75899b13e 100644 --- a/memory/mozalloc/Makefile.in +++ b/memory/mozalloc/Makefile.in @@ -29,12 +29,10 @@ ifeq ($(OS_ARCH),Linux) DEFINES += -DXP_LINUX endif -ifeq (,$(filter-out OS2,$(OS_ARCH))) # The strndup declaration in string.h is in an ifdef __USE_GNU section DEFINES += -D_GNU_SOURCE -endif -ifneq (,$(filter OS2 WINNT,$(OS_ARCH))) +ifneq (,$(filter WINNT,$(OS_ARCH))) SDK_LIBRARY = $(IMPORT_LIBRARY) else SDK_LIBRARY = $(SHARED_LIBRARY) diff --git a/memory/mozalloc/mozalloc.cpp b/memory/mozalloc/mozalloc.cpp index 5da994372..016db9245 100644 --- a/memory/mozalloc/mozalloc.cpp +++ b/memory/mozalloc/mozalloc.cpp @@ -20,7 +20,7 @@ # include <unistd.h> // for valloc on *BSD #endif //if defined(XP_UNIX) -#if defined(XP_WIN) || (defined(XP_OS2) && defined(__declspec)) +#if defined(XP_WIN) # define MOZALLOC_EXPORT __declspec(dllexport) #endif diff --git a/memory/mozalloc/mozalloc.h b/memory/mozalloc/mozalloc.h index 7d0f07316..35d2b3634 100644 --- a/memory/mozalloc/mozalloc.h +++ b/memory/mozalloc/mozalloc.h @@ -29,7 +29,7 @@ #if defined(MOZALLOC_EXPORT) /* do nothing: it's been defined to __declspec(dllexport) by * mozalloc*.cpp on platforms where that's required. */ -#elif defined(XP_WIN) || (defined(XP_OS2) && defined(__declspec)) +#elif defined(XP_WIN) # define MOZALLOC_EXPORT __declspec(dllimport) #elif defined(HAVE_VISIBILITY_ATTRIBUTE) /* Make sure symbols are still exported even if we're wrapped in a diff --git a/memory/mozalloc/mozalloc_abort.cpp b/memory/mozalloc/mozalloc_abort.cpp index e1513f027..12149505e 100644 --- a/memory/mozalloc/mozalloc_abort.cpp +++ b/memory/mozalloc/mozalloc_abort.cpp @@ -5,7 +5,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#if defined(XP_WIN) || defined(XP_OS2) +#if defined(XP_WIN) # define MOZALLOC_EXPORT __declspec(dllexport) #endif diff --git a/memory/mozalloc/mozalloc_abort.h b/memory/mozalloc/mozalloc_abort.h index 08ee39925..bf9d73c89 100644 --- a/memory/mozalloc/mozalloc_abort.h +++ b/memory/mozalloc/mozalloc_abort.h @@ -13,7 +13,7 @@ #if defined(MOZALLOC_EXPORT) // do nothing: it's been defined to __declspec(dllexport) by // mozalloc*.cpp on platforms where that's required -#elif defined(XP_WIN) || (defined(XP_OS2) && defined(__declspec)) +#elif defined(XP_WIN) # define MOZALLOC_EXPORT __declspec(dllimport) #elif defined(HAVE_VISIBILITY_ATTRIBUTE) /* Make sure symbols are still exported even if we're wrapped in a diff --git a/memory/mozalloc/mozalloc_oom.cpp b/memory/mozalloc/mozalloc_oom.cpp index 4ad241424..d6b914bac 100644 --- a/memory/mozalloc/mozalloc_oom.cpp +++ b/memory/mozalloc/mozalloc_oom.cpp @@ -5,7 +5,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#if defined(XP_WIN) || defined(XP_OS2) +#if defined(XP_WIN) # define MOZALLOC_EXPORT __declspec(dllexport) #endif diff --git a/memory/mozalloc/mozalloc_oom.h b/memory/mozalloc/mozalloc_oom.h index 75b356a4c..bd3daec08 100644 --- a/memory/mozalloc/mozalloc_oom.h +++ b/memory/mozalloc/mozalloc_oom.h @@ -13,7 +13,7 @@ #if defined(MOZALLOC_EXPORT) // do nothing: it's been defined to __declspec(dllexport) by // mozalloc*.cpp on platforms where that's required -#elif defined(XP_WIN) || (defined(XP_OS2) && defined(__declspec)) +#elif defined(XP_WIN) # define MOZALLOC_EXPORT __declspec(dllimport) #elif defined(HAVE_VISIBILITY_ATTRIBUTE) /* Make sure symbols are still exported even if we're wrapped in a diff --git a/memory/mozalloc/msvc_raise_wrappers.cpp b/memory/mozalloc/msvc_raise_wrappers.cpp index cbdc4527f..1675f96ca 100644 --- a/memory/mozalloc/msvc_raise_wrappers.cpp +++ b/memory/mozalloc/msvc_raise_wrappers.cpp @@ -7,7 +7,7 @@ #include <stdio.h> -#if defined(XP_WIN) || defined(XP_OS2) +#if defined(XP_WIN) # define MOZALLOC_EXPORT __declspec(dllexport) #endif diff --git a/memory/mozalloc/msvc_throw_wrapper.cpp b/memory/mozalloc/msvc_throw_wrapper.cpp index 6e403cfa5..14c3692b1 100644 --- a/memory/mozalloc/msvc_throw_wrapper.cpp +++ b/memory/mozalloc/msvc_throw_wrapper.cpp @@ -7,7 +7,7 @@ #include <exception> -#if defined(XP_WIN) || defined(XP_OS2) +#if defined(XP_WIN) # define MOZALLOC_EXPORT __declspec(dllexport) #endif |