Closed Bug 793465 Opened 12 years ago Closed 10 years ago

Unconditional definition of HAVE_UINT64_T in configure.in

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla29

People

(Reporter: jesup, Assigned: sylvestre)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file, 1 obsolete file)

In configure.in it unconditionally defines HAVE_UINT64_T:

    # For now we assume that we will have a uint64_t available through
    # one of the above headers or mozstdint.h.
    AC_DEFINE(HAVE_UINT64_T)

This was added in bug 290518, with this comment from bryner:

   We need to define HAVE_UINT64_T, I guess. May as well do it unconditionally since we have this type available everywhere.

This is bad and messes up external code that assumes HAVE_UINT64_T doesn't lie.
Blocks: 793393
Is this bug valid anymore now that we require stdint.h?
Attached patch fix-bug-793465.diff (obsolete) — Splinter Review
Remove the unconditional declaration of HAVE_UINT64_T

External codes have their own definitions or management.

cairo:
Defined in gfx/cairo/cairo/src/cairo-wideint-type-private.h

intl:
Defined in intl/icu/source/configure.in

webrtc:
media/webrtc/signaling/signaling.gyp

netwerk:
netwerk/srtp/src/Makefile.in
Attachment #831597 - Flags: review?(mh+mozilla)
Attachment #831597 - Flags: review?(mh+mozilla) → review+
Attachment #831597 - Flags: checkin?
Attachment #831597 - Flags: checkin? → checkin+
OK. I see two potential solutions here:
* Only enable the AC_DEFINE under Windows
* Hack cairo (cairo-wideint-type-private.h ?) to make sure that this defines is also available under Windows
Here is the implementation of the first proposition (only enable the define under Windows).
Attachment #831597 - Attachment is obsolete: true
Attachment #8335987 - Flags: review?
Comment on attachment 8335987 [details] [diff] [review]
fix-bug-793465.diff

In the future you should make sure to request review from an actual person, so it doesn't get lost. You can find suggested reviewers when you upload an attachment and click the 'suggested reviewers' link.
Attachment #8335987 - Flags: review? → review?(mh+mozilla)
Attachment #8335987 - Flags: review?(mh+mozilla) → review+
https://hg.mozilla.org/mozilla-central/rev/518ace66cba3
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Whiteboard: [qa-]
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: