mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 09:27:31 +09:00
Update NSPR to 4.19
This commit is contained in:
parent
c1f85b85de
commit
099459dec0
42 changed files with 87 additions and 11 deletions
1
nsprpub/pr/src/pthreads/.cvsignore
Normal file
1
nsprpub/pr/src/pthreads/.cvsignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
Makefile
|
||||
|
|
@ -978,7 +978,23 @@ void _PR_InitThreads(
|
|||
* GCC supports the constructor and destructor attributes as of
|
||||
* version 2.5.
|
||||
*/
|
||||
#if defined(DARWIN)
|
||||
/*
|
||||
* The dynamic linker on OSX doesn't execute __attribute__((destructor))
|
||||
* destructors in the right order wrt non-__attribute((destructor)) destructors
|
||||
* in other libraries. So use atexit() instead, which does.
|
||||
* See https://bugzilla.mozilla.org/show_bug.cgi?id=1399746#c99
|
||||
*/
|
||||
static void _PR_Fini(void);
|
||||
|
||||
__attribute__ ((constructor))
|
||||
static void _register_PR_Fini() {
|
||||
atexit(_PR_Fini);
|
||||
}
|
||||
#else
|
||||
static void _PR_Fini(void) __attribute__ ((destructor));
|
||||
#endif
|
||||
|
||||
#elif defined(__SUNPRO_C)
|
||||
/*
|
||||
* Sun Studio compiler
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue