Changeset - r11294:320545551bef
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-03-08 23:06:41
rubidium@openttd.org
(svn r15648) -Fix (r14773): hack around an OSX stupidity in < 10.4 w.r.t. signals by not having any signal handling support for OSX < 10.4. Thanks to PearPC and TrueBrain's OSX compiler.
1 file changed with 10 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/os/macosx/macos.h
Show inline comments
 
@@ -83,4 +83,14 @@ static inline bool MacOSVersionIsAtLeast
 
	return true;
 
}
 

	
 
/*
 
 * OSX 10.3.9 has blessed us with a signal with unlikable side effects.
 
 * The most problematic side effect is that it makes OpenTTD 'think' that
 
 * it's running on 10.4.0 or higher and thus tries to link to functions
 
 * that are only defined there. So now we'll remove all and any signal
 
 * handling for OSX < 10.4 and 10.3.9 works as it should at the cost of
 
 * not giving a useful error when savegame loading goes wrong.
 
 */
 
#define signal(sig, func) (MacOSVersionIsAtLeast(10, 4, 0) ? signal(sig, func) : NULL)
 

	
 
#endif /* MACOS_H */
0 comments (0 inline, 0 general)