Bug 795238 - Make nsresult a uint32_t enum everywhere that C++11 typed enums are supported; r=Aryeh
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 09 Oct 2012 09:23:52 -0400
changeset 109745 13d96461b2da096ef22db98c26f1cf004fcb7922
parent 109744 8a20f6ef0df1d312ad024e2bfbfaed432e0ea773
child 109746 9dc4dbee5c4f4cc8ac3b74ccd39f71a384a02dbf
push id23652
push userryanvm@gmail.com
push dateWed, 10 Oct 2012 01:10:20 +0000
treeherdermozilla-central@5cca0408a73f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersAryeh
bugs795238
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 795238 - Make nsresult a uint32_t enum everywhere that C++11 typed enums are supported; r=Aryeh
xpcom/base/nsError.h
--- a/xpcom/base/nsError.h
+++ b/xpcom/base/nsError.h
@@ -111,17 +111,17 @@
 
 /**
  * @name Standard return values
  */
 
 /*@{*/
 
 typedef enum tag_nsresult
-#if defined(__cplusplus) && defined(_MSC_VER) && defined(_M_X64)
+#if defined(__cplusplus) && defined(MOZ_HAVE_CXX11_ENUM_TYPE)
   /* need underlying type for workaround of Microsoft compiler (Bug 794734) */
   : uint32_t
 #endif
 { 
   /* Standard "it worked" return value */
   NS_OK = 0,
 
   /* ======================================================================= */