Export ldexp aliases on Windows

skip END and add .drectve export in assembly versions

uncomment __strong_reference definition from cdefs-compat.h

use weak references in place of strong references on Mac

add DLLEXPORT to all strong references

Fixes Julia issue #6777
This commit is contained in:
Tony Kelman
2014-05-08 18:35:17 -07:00
parent 516b4f4222
commit 8b59bbc18b
4 changed files with 22 additions and 10 deletions
+6 -2
View File
@@ -22,8 +22,12 @@
#ifdef __GNUC__
#ifndef __strong_reference
#define __strong_reference(sym,aliassym)
//extern __typeof (sym) aliassym __attribute__ ((__alias__ (#sym)));
#ifdef __APPLE__
#define __strong_reference(sym,aliassym) __weak_reference(sym,aliassym)
#else
#define __strong_reference(sym,aliassym) \
DLLEXPORT extern __typeof (sym) aliassym __attribute__ ((__alias__ (#sym)));
#endif /* __APPLE__ */
#endif /* __strong_reference */
#ifndef __weak_reference