More fixes for the Solaris/x86 build. Thanks to Will Metcalf.

This commit is contained in:
Mike Pall
2011-06-14 16:44:20 +02:00
parent 9cf2cd2a11
commit 3d1563524f
8 changed files with 15 additions and 7 deletions

View File

@@ -118,8 +118,10 @@ typedef uintptr_t BloomFilter;
#define LJ_NOINLINE __attribute__((noinline))
#if defined(__ELF__) || defined(__MACH__)
#if !((defined(__sun__) && defined(__svr4__)) || defined(__solaris__))
#define LJ_NOAPI extern __attribute__((visibility("hidden")))
#endif
#endif
/* Note: it's only beneficial to use fastcall on x86 and then only for up to
** two non-FP args. The amalgamated compile covers all LJ_FUNC cases. Only