Skip to content
Snippets Groups Projects
Commit 3b12e852 authored by Ben Gamari's avatar Ben Gamari
Browse files

rts: Work around missing prototypes errors

Darwin's toolchain inexpliciably claims that `write_barrier` and friends
have declarations without prototypes, despite the fact that (a) they are
definitions, and (b) the prototypes appear only a few lines above. Work
around this by making the definitions proper prototypes.

(cherry picked from commit 5b6612bc)
parent 024861af
No related merge requests found
......@@ -589,9 +589,9 @@ load_load_barrier(void) {
EXTERN_INLINE void write_barrier(void);
EXTERN_INLINE void store_load_barrier(void);
EXTERN_INLINE void load_load_barrier(void);
EXTERN_INLINE void write_barrier () {} /* nothing */
EXTERN_INLINE void store_load_barrier() {} /* nothing */
EXTERN_INLINE void load_load_barrier () {} /* nothing */
EXTERN_INLINE void write_barrier (void) {} /* nothing */
EXTERN_INLINE void store_load_barrier(void) {} /* nothing */
EXTERN_INLINE void load_load_barrier (void) {} /* nothing */
// Relaxed atomic operations
#define RELAXED_LOAD(ptr) *ptr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment