From: Nick Mathewson Date: Fri, 21 Jul 2006 14:53:23 +0000 (+0000) Subject: Another MSVC6 fix. Grnk. X-Git-Tag: tor-0.1.1.23~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08a4114abf4b933f9e58f83bcdbdd45c430c5a1e;p=thirdparty%2Ftor.git Another MSVC6 fix. Grnk. svn:r6802 --- diff --git a/src/common/compat.h b/src/common/compat.h index fde91172d4..9a1cd1b66f 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -79,7 +79,7 @@ #if defined(_MSC_VER) && (_MSC_VER < 1300) /* MSVC versions before 7 apparently don't believe that you can cast uint64_t * to double and really mean it. */ -extern inline double U64_TO_DBL(uint64_t x) { +extern INLINE double U64_TO_DBL(uint64_t x) { int64_t i = (int64_t) x; return (i < 0) ? ((double) INT64_MAX) : (double) i; }