Fix: warnings when compiling for a recent version of Haiku

This might break older Haiku versions, but it is hard to tell.
This commit is contained in:
Patric Stout
2019-03-04 20:51:46 +01:00
parent aa350528df
commit 1c5ea33099
4 changed files with 13 additions and 12 deletions

View File

@@ -22,10 +22,9 @@ FILE *_log_fd = NULL; ///< File to reroute output of a forked OpenTTD to
#include "safeguards.h"
#if (defined(SUNOS) && !defined(_LP64) && !defined(_I32LPx)) || defined(__HAIKU__)
#if defined(SUNOS) && !defined(_LP64) && !defined(_I32LPx)
/* Solaris has, in certain situation, pid_t defined as long, while in other
* cases it has it defined as int... this handles all cases nicely.
* Haiku has also defined pid_t as a long.
*/
# define PRINTF_PID_T "%ld"
#else