diff options
author | truelight <truelight@openttd.org> | 2005-12-06 17:05:14 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-12-06 17:05:14 +0000 |
commit | e5fa92384dc473849156d30836bb37de0014e513 (patch) | |
tree | 5f25eda9809afcb3df7898a2574d323743f9c7d0 /ai | |
parent | 20e20000f2701ca920216145bbe03dfad4f8f764 (diff) | |
download | openttd-e5fa92384dc473849156d30836bb37de0014e513.tar.xz |
(svn r3265) -Fix: partly reverted back r3263, because MSVC, who else, doesn't support variadic macros............
Diffstat (limited to 'ai')
-rw-r--r-- | ai/ai_event.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ai/ai_event.h b/ai/ai_event.h index 33d5d170a..0be131653 100644 --- a/ai/ai_event.h +++ b/ai/ai_event.h @@ -13,8 +13,12 @@ #else /* GPMI */ -/* If GPMI isn't loaded, don't do a thing with the events (for now at least) */ -# define ai_event(...) +# ifdef DEF_EVENTS + void CDECL empty_function(PlayerID player, int event, ...) {} +# else + extern void CDECL empty_function(PlayerID player, int event, ...); +# endif +# define ai_event empty_function #endif /* GPMI */ /* To make our life a bit easier; you now only have to define new |