fix callbacks linkage for clang/mac

This commit is contained in:
Enno Rehling 2017-05-02 15:10:43 +02:00
parent 83d40962d2
commit cb0cd87f23
3 changed files with 7 additions and 4 deletions

View file

@ -17,7 +17,7 @@ group.test.c
item.test.c item.test.c
messages.test.c messages.test.c
order.test.c order.test.c
# pathdinder.test.c # pathfinder.test.c
plane.test.c plane.test.c
pool.test.c pool.test.c
race.test.c race.test.c

View file

@ -1,4 +1,5 @@
#include <platform.h> #include <platform.h>
#include "callbacks.h" #include "callbacks.h"
struct callbacks callbacks; struct callback_struct callbacks = { 0 };

View file

@ -25,11 +25,13 @@ extern "C" {
struct castorder; struct castorder;
extern struct callbacks { struct callback_struct {
int (*cast_spell)(struct castorder *co, const char *fname); int (*cast_spell)(struct castorder *co, const char *fname);
} callbacks; };
extern struct callback_struct callbacks;
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* H_KRNL_CALLBACKS_H */ #endif /* H_KRNL_CALLBACKS_H */