Closed Bug 118286 Opened 23 years ago Closed 23 years ago

PR_ALIGN_OF_WORD is not defined on all platforms

Categories

(NSPR :: NSPR, defect)

defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: netscape, Assigned: wtc)

References

Details

Over half the SeaMonkey-Ports pages are in flames now because alecf checked in a change to prefapi.cpp which uses PR_ALIGN_OF_WORD. This is apparently defined on win32, mac & linux but nowhere else.
PR_ALIGN_OF_WORD is not documented and should not be used in new code. We keep the existing definitions of PR_ALIGN_OF_WORD and similar macros for backward compatibility. Another problem with PR_ALIGN_OF_WORD is that the "word" refers to the word of the Java virtual machine. (This is a vestige of NSPR's prior role as the underpinnings of Netscape port of Sun JVM.) Therefore, this "word" is most likely not what you think it is.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
Can we move the PR_WORD_OF_ALIGN define into the NO_NSPR_10_SUPPORT ifndef ?
*** Bug 118583 has been marked as a duplicate of this bug. ***
The NO_NSPR_10_SUPPORT macro was created to make it easier for people to migrate from NSPR 1.0 to the current NSPR. Not all the obsolete and deprecated NSPR stuff is for NSPR 1.0 support.
Compiling under Solaris 2.8 for SPARC using GNU CC 2.95.3 is working again as of 20020112.
You need to log in before you can comment on or make changes to this bug.