From 470bedbbe60db2b9cc85dccafb6e06d9a841419d Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sat, 30 Apr 2011 12:03:28 +0100 Subject: Don't expose the cas definition to .hc files This is more pleasant than having the C generator check whether the function it's calling is cas, and not generate a prototype if so. --- includes/stg/SMP.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'includes/stg') diff --git a/includes/stg/SMP.h b/includes/stg/SMP.h index f1b0422009..52fd6f1bc6 100644 --- a/includes/stg/SMP.h +++ b/includes/stg/SMP.h @@ -306,6 +306,7 @@ load_load_barrier(void) { #define store_load_barrier() /* nothing */ #define load_load_barrier() /* nothing */ +#if !IN_STG_CODE || IN_STGCRUN INLINE_HEADER StgWord xchg(StgPtr p, StgWord w) { @@ -337,6 +338,7 @@ atomic_dec(StgVolatilePtr p) { return --(*p); } +#endif #define VOLATILE_LOAD(p) ((StgWord)*((StgWord*)(p))) -- cgit v1.2.1