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
messages.test.c
order.test.c
# pathdinder.test.c
# pathfinder.test.c
plane.test.c
pool.test.c
race.test.c

View file

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

View file

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