Bug 422185 - "jsgc.obj : error LNK2001: unresolved external symbol "int __cdecl posix_memalign(void * *,unsigned int,unsigned int)" (?posix_memalign@@YAHPAPAXII@Z)" (posix_memalign needs to be extern "C" when compiling with a C++ compiler) [p=benjamin@smedbergs.us (Benjamin Smedberg [bsmedberg]) r=brendan a1.9=damons]
git-svn-id: svn://10.0.0.236/trunk@247687 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
4e38878e9e
commit
7eddaab1f2
@ -92,8 +92,10 @@
|
||||
* declared on Windows.
|
||||
*/
|
||||
#if HAS_POSIX_MEMALIGN && MOZ_MEMORY_WINDOWS
|
||||
JS_BEGIN_EXTERN_C
|
||||
extern int
|
||||
posix_memalign(void **memptr, size_t alignment, size_t size);
|
||||
JS_END_EXTERN_C
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user