From: curt Date: Sun, 26 Apr 1998 05:01:19 +0000 (+0000) Subject: Added an rint() / HAVE_RINT check. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1a7e966d0bc6e9c679669ba19b5b9612a475995b;p=flightgear.git Added an rint() / HAVE_RINT check. --- diff --git a/Main/options.cxx b/Main/options.cxx index e72df7f31..fed336b69 100644 --- a/Main/options.cxx +++ b/Main/options.cxx @@ -23,6 +23,10 @@ // (Log is kept at end of this file) +#ifdef HAVE_CONFIG_H +# include +#endif + #include // rint() #include #include // atof() @@ -132,7 +136,11 @@ static int parse_time_offset(char *time_str) { // printf("time offset = %s\n", time_str); +#ifdef HAVE_RINT result = (int)rint(parse_time(time_str)); +#else + result = (int)parse_time(time_str); +#endif printf("parse_time_offset(): %d\n", result); @@ -191,6 +199,9 @@ fgOPTIONS::~fgOPTIONS( void ) { // $Log$ +// Revision 1.3 1998/04/26 05:01:19 curt +// Added an rint() / HAVE_RINT check. +// // Revision 1.2 1998/04/25 15:11:12 curt // Added an command line option to set starting position based on airport ID. //