Open
Bug 748217
Opened 13 years ago
Updated 3 years ago
undefined references to _InterlockedIncrement and family
Categories
(NSPR :: NSPR, defect)
Tracking
(Not tracked)
NEW
People
(Reporter: rs, Unassigned)
Details
Attachments
(1 file)
|
3.03 KB,
patch
|
Details | Diff | Splinter Review |
Issue:
- when cross compiling for mingw32 on Fedora16, I get undefined references
for the _Interlocked* functions declared in pr/include/pratom.h.
- there are versions of these functions, without the '_' prefix,
declared in winbase.h for both the fedora cross-compile and
MozBuild environments.
Fix
- add a configure check for winbase.h and windows.h
- modify pr/include/pratom.h. IFF configure found windows.h,
winbase.h AND winbase hasn't already been included, then
include windows.h and winbase.h, and use the non-prefixed
version of the Interlocked* functions declared in winbase.h
for all the PR_ATOMIC_* macros
I know that cross compiling isn't officially supported, but it just makes more sense to me to use system headers for prototype when available.
Updated•6 years ago
|
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment 1•3 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: wtc → nobody
Status: ASSIGNED → NEW
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•