mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
c11cbd22fc
map editor. The focus is put on stabilizing and bugfixing the included map compiler, q3map2, so it can become a reliable tool for map authors. WWW: http://ingar.satgnu.net/gtkradiant/
32 lines
656 B
C
32 lines
656 B
C
--- libs/math/vector.h.orig 2013-06-30 22:04:34.000000000 +0800
|
|
+++ libs/math/vector.h 2013-09-06 20:03:32.000000000 +0800
|
|
@@ -45,27 +45,14 @@
|
|
return static_cast<__int64>( f + 0.5 );
|
|
}
|
|
|
|
-#elif defined( __FreeBSD__ )
|
|
+#else // lrint is part of ISO C99
|
|
|
|
-inline long lrint( double f ){
|
|
- return static_cast<long>( f + 0.5 );
|
|
-}
|
|
-
|
|
-inline long long llrint( double f ){
|
|
- return static_cast<long long>( f + 0.5 );
|
|
-}
|
|
-
|
|
-#elif defined( __GNUC__ )
|
|
-
|
|
-// lrint is part of ISO C99
|
|
#define _ISOC9X_SOURCE 1
|
|
#define _ISOC99_SOURCE 1
|
|
|
|
#define __USE_ISOC9X 1
|
|
#define __USE_ISOC99 1
|
|
|
|
-#else
|
|
-#error "unsupported platform"
|
|
#endif
|
|
|
|
#include <cmath>
|