summaryrefslogtreecommitdiff
path: root/allchblk.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-09-26 15:43:34 +0000
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 21:06:48 +0400
commitcbdc6415cc8a2eb3de850771a45afaeddd283233 (patch)
tree173f7c74768c87d83668a305f8fd5a086b932521 /allchblk.c
parent3a9f172a4621dc6ad106ffe7d578b55a14531840 (diff)
downloadbdwgc-cbdc6415cc8a2eb3de850771a45afaeddd283233.tar.gz
2009-09-26 Ivan Maidanski <ivmai@mail.ru>
* allchblk.c (GC_enough_large_bytes_left): Replace "inline static" with GC_INLINE. * include/private/gc_priv.h (fixed_getenv): Ditto. * alloc.c (GC_max, GC_min): Replace "static INLINE" with GC_INLINE. * mark_rts.c (rt_hash): Ditto. * win32_threads.c (GC_get_max_thread_index): Ditto. * include/private/gc_priv.h (INLINE): Prefix with "GC_"; include "static"; define for Sun CC; define for VC++ (and other compilers). * pthread_support.c: Don't define __inline__ for non-GNU compilers (not needed anymore).
Diffstat (limited to 'allchblk.c')
-rw-r--r--allchblk.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/allchblk.c b/allchblk.c
index b2a5ea73..0e37306d 100644
--- a/allchblk.c
+++ b/allchblk.c
@@ -55,10 +55,7 @@ struct hblk * GC_hblkfreelist[N_HBLK_FLS+1] = { 0 };
/* Is GC_large_allocd_bytes + the number of free bytes on lists */
/* n .. N_HBLK_FLS > GC_max_large_allocd_bytes. */
/* If there is no such n, return 0. */
-# ifdef __GNUC__
- __inline__
-# endif
- static int GC_enough_large_bytes_left(void)
+ GC_INLINE int GC_enough_large_bytes_left(void)
{
int n;
word bytes = GC_large_allocd_bytes;