summaryrefslogtreecommitdiff
path: root/src/lj_def.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_def.h')
-rw-r--r--src/lj_def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_def.h b/src/lj_def.h
index eeb55384..78d988ea 100644
--- a/src/lj_def.h
+++ b/src/lj_def.h
@@ -118,8 +118,10 @@ typedef uintptr_t BloomFilter;
118#define LJ_NOINLINE __attribute__((noinline)) 118#define LJ_NOINLINE __attribute__((noinline))
119 119
120#if defined(__ELF__) || defined(__MACH__) 120#if defined(__ELF__) || defined(__MACH__)
121#if !((defined(__sun__) && defined(__svr4__)) || defined(__solaris__))
121#define LJ_NOAPI extern __attribute__((visibility("hidden"))) 122#define LJ_NOAPI extern __attribute__((visibility("hidden")))
122#endif 123#endif
124#endif
123 125
124/* Note: it's only beneficial to use fastcall on x86 and then only for up to 126/* Note: it's only beneficial to use fastcall on x86 and then only for up to
125** two non-FP args. The amalgamated compile covers all LJ_FUNC cases. Only 127** two non-FP args. The amalgamated compile covers all LJ_FUNC cases. Only