/// \brief Vector data types and related operations.
#include "generic/vector.h"
+#include "globaldefs.h"
-#if defined ( _MSC_VER )
+#if GDEF_COMPILER_MSVC
inline int lrint( double flt ){
int i;
return static_cast<__int64>( f + 0.5 );
}
-#elif defined( __FreeBSD__ )
+#elif GDEF_OS_BSD
inline long lrint( double f ){
return static_cast<long>( f + 0.5 );
return static_cast<long long>( f + 0.5 );
}
-#elif defined( __GNUC__ )
+#elif GDEF_COMPILER_GNU
// lrint is part of ISO C99
#define _ISOC9X_SOURCE 1