Closed
Bug 927427
Opened 12 years ago
Closed 12 years ago
use __LP64__ in FileUtils.cpp for Linux
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: froydnj, Unassigned)
References
Details
Attachments
(1 file)
766 bytes,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
I missed that Linux needed this conversion too, just like OSX.
![]() |
Reporter | |
Comment 1•12 years ago
|
||
Attachment #817862 -
Flags: review?(benjamin)
Comment 2•12 years ago
|
||
Comment on attachment 817862 [details] [diff] [review]
use __LP64__ in FileUtils.cpp for Linux
Why does it need this conversion? I thought that the LP64 stuff was some mac-specific issue.
![]() |
Reporter | |
Comment 3•12 years ago
|
||
(In reply to Benjamin Smedberg [:bsmedberg] from comment #2)
> Comment on attachment 817862 [details] [diff] [review]
> use __LP64__ in FileUtils.cpp for Linux
>
> Why does it need this conversion? I thought that the LP64 stuff was some
> mac-specific issue.
__LP64__ is the "standard" unix-ish define for indicating the machine has 64-bit longs and 64-bit pointers. So it works for indicating 64-bitness on GCC/Linux just as well as clang/OSX.
Comment 4•12 years ago
|
||
Comment on attachment 817862 [details] [diff] [review]
use __LP64__ in FileUtils.cpp for Linux
ok... although aren't there 64-bit architectures which aren't lp64? ilp64, for example. It probably doesn't matter in practice, but I do wonder why we're bothering to make this change at all.
Attachment #817862 -
Flags: review?(benjamin) → review+
![]() |
Reporter | |
Comment 5•12 years ago
|
||
(In reply to Benjamin Smedberg [:bsmedberg] from comment #4)
> Comment on attachment 817862 [details] [diff] [review]
> use __LP64__ in FileUtils.cpp for Linux
>
> ok... although aren't there 64-bit architectures which aren't lp64? ilp64,
> for example. It probably doesn't matter in practice, but I do wonder why
> we're bothering to make this change at all.
The idea is to either (a) get rid of HAVE_64BIT_OS so that universal mac builds become easier; or (b) reduce HAVE_64BIT_OS to something only makefiles and win32 cares about. But it's an open question how much we would care about faster universal mac builds (e.g. if we dropped 32-bit support). I need to post to dev-planning about that.
![]() |
Reporter | |
Comment 6•12 years ago
|
||
Flags: in-testsuite-
Comment 7•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in
before you can comment on or make changes to this bug.
Description
•