Fix elfhack build in c++0x mode

RESOLVED FIXED in mozilla9

Status

()

Core
Build Config
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: espindola, Assigned: espindola)

Tracking

unspecified
mozilla9
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

Created attachment 552181 [details] [diff] [review]
fix build
Attachment #552181 - Flags: review?(mh+mozilla)
Comment on attachment 552181 [details] [diff] [review]
fix build

Review of attachment 552181 [details] [diff] [review]:
-----------------------------------------------------------------

::: build/unix/elfhack/elfhack.cpp
@@ +36,5 @@
>   * ***** END LICENSE BLOCK ***** */
>  
>  #undef NDEBUG
> +#define __STDC_LIMIT_MACROS
> +#include <stdint.h>

Using climits and UINT_MAX should be better.

::: build/unix/elfhack/elfxx.h
@@ +276,4 @@
>          throw std::runtime_error("Unsupported ELF class or data encoding");
>      }
>  
> +    static inline unsigned size(char ei_class)

Please use "unsigned int", even if there's no difference, that's what the rest of the code uses.
Attachment #552181 - Flags: review?(mh+mozilla) → review-
Created attachment 552353 [details] [diff] [review]
new patch
Attachment #552181 - Attachment is obsolete: true
Attachment #552353 - Flags: review?(mh+mozilla)
Attachment #552353 - Flags: review?(mh+mozilla) → review+
Rafael: reminder for landing.  :)
It landed on glandium's elfhack repo. I assumed he wanted to do a full merge. Glandium, is that the case?
http://hg.mozilla.org/mozilla-central/rev/565a69914c4b
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla9
Assignee: nobody → respindola
You need to log in before you can comment on or make changes to this bug.