From: Bernhard Reutner-Fischer Date: Fri, 6 Jun 2008 10:31:39 +0000 (-0000) Subject: - fix compilation on standard-conforming compilers X-Git-Tag: 1_11_0~117 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=797c96d8ce8765e11510e9dcd4c484ed3ced532c;p=oweals%2Fbusybox.git - fix compilation on standard-conforming compilers --- 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(); \