From 797c96d8ce8765e11510e9dcd4c484ed3ced532c Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 6 Jun 2008 10:31:39 +0000 Subject: - fix compilation on standard-conforming compilers --- include/libbb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libbb.h b/include/libbb.h index 1e4968bfa..c4d802ffd 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -1287,7 +1287,7 @@ struct globals; * If you want to assign a value, use SET_PTR_TO_GLOBALS(x) */ extern struct globals *const ptr_to_globals; /* At least gcc 3.4.6 on mipsel system needs optimization barrier */ -#define barrier() asm volatile("":::"memory") +#define barrier() __asm__ __volatile__("":::"memory") #define SET_PTR_TO_GLOBALS(x) do { \ (*(struct globals**)&ptr_to_globals) = (x); \ barrier(); \ -- cgit v1.2.3