Bug 1423109 - Remove Sun Pro compiler specific preprocessor directives from mozalloc.h. r?njn draft
authorMike Hommey <mh+mozilla@glandium.org>
Tue, 05 Dec 2017 17:00:02 +0900
changeset 707453 c6c8362d229c775ef032520ad59ff7e762103d42
parent 707449 d05b814789dd8ca69d902b55d86935a3a0895e17
child 707454 8691a1eb77a811f48a17d949174bb2eb99f1f13c
push id92109
push userbmo:mh+mozilla@glandium.org
push dateTue, 05 Dec 2017 08:06:25 +0000
reviewersnjn
bugs1423109, 1255813
milestone59.0a1
Bug 1423109 - Remove Sun Pro compiler specific preprocessor directives from mozalloc.h. r?njn As of bug 1255813, compiling with Sun Pro compiler is not supported.
memory/mozalloc/mozalloc.h
--- a/memory/mozalloc/mozalloc.h
+++ b/memory/mozalloc/mozalloc.h
@@ -38,24 +38,16 @@
 #if defined(MOZ_ALWAYS_INLINE_EVEN_DEBUG)
 #  define MOZALLOC_INLINE MOZ_ALWAYS_INLINE_EVEN_DEBUG
 #elif defined(HAVE_FORCEINLINE)
 #  define MOZALLOC_INLINE __forceinline
 #else
 #  define MOZALLOC_INLINE inline
 #endif
 
-/* Workaround build problem with Sun Studio 12 */
-#if defined(__SUNPRO_C) || defined(__SUNPRO_CC)
-#  undef MOZ_MUST_USE
-#  define MOZ_MUST_USE
-#  undef MOZ_ALLOCATOR
-#  define MOZ_ALLOCATOR
-#endif
-
 #if defined(__cplusplus)
 extern "C" {
 #endif /* ifdef __cplusplus */
 
 /*
  * We need to use malloc_impl and free_impl in this file when they are
  * defined, because of how mozglue.dll is linked on Windows, where using
  * malloc/free would end up using the symbols from the MSVCRT instead of