forked from github/server
fix callbacks linkage for clang/mac
This commit is contained in:
parent
83d40962d2
commit
cb0cd87f23
3 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <platform.h>
|
||||
#include "callbacks.h"
|
||||
|
||||
struct callbacks callbacks;
|
||||
struct callback_struct callbacks = { 0 };
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue