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 | af87b2916ad54b889a18c174d48db0ca1371b543 (patch) | |
tree | 5f25eda9809afcb3df7898a2574d323743f9c7d0 | |
parent | 686da2f4e14256b2b79ee6d070a580aafddefde1 (diff) | |
download | openttd-af87b2916ad54b889a18c174d48db0ca1371b543.tar.xz |
(svn r3265) -Fix: partly reverted back r3263, because MSVC, who else, doesn't support variadic macros............
-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 |