mirror of
https://github.com/sheumann/hush.git
synced 2025-01-01 02:32:25 +00:00
- fix compilation on standard-conforming compilers
This commit is contained in:
parent
593f8baeb0
commit
797c96d8ce
@ -1287,7 +1287,7 @@ struct globals;
|
|||||||
* If you want to assign a value, use SET_PTR_TO_GLOBALS(x) */
|
* If you want to assign a value, use SET_PTR_TO_GLOBALS(x) */
|
||||||
extern struct globals *const ptr_to_globals;
|
extern struct globals *const ptr_to_globals;
|
||||||
/* At least gcc 3.4.6 on mipsel system needs optimization barrier */
|
/* 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 { \
|
#define SET_PTR_TO_GLOBALS(x) do { \
|
||||||
(*(struct globals**)&ptr_to_globals) = (x); \
|
(*(struct globals**)&ptr_to_globals) = (x); \
|
||||||
barrier(); \
|
barrier(); \
|
||||||
|
Loading…
Reference in New Issue
Block a user