From 59aa82d19bead46dbe177359c7768c5e17684e95 Mon Sep 17 00:00:00 2001 From: keenanlang Date: Wed, 11 Mar 2015 21:35:46 +0000 Subject: [PATCH] rint doesn't need to be implemented for minGW --- motorApp/SmarActMCSSrc/smarActMCSMotorDriver.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/motorApp/SmarActMCSSrc/smarActMCSMotorDriver.cpp b/motorApp/SmarActMCSSrc/smarActMCSMotorDriver.cpp index 4ef96764..bf35d6b7 100644 --- a/motorApp/SmarActMCSSrc/smarActMCSMotorDriver.cpp +++ b/motorApp/SmarActMCSSrc/smarActMCSMotorDriver.cpp @@ -35,8 +35,9 @@ #define FAR_AWAY 1000000000 /*nm*/ #define UDEG_PER_REV 360000000 -// Windows does not have rint() -#ifdef _WIN32 +// Windows and vxWorks do not have rint(), but minGW does +#if defined __MINGW32__ || defined __MINGW64__ +#elif defined _WIN32 || defined vxWorks double rint(double x) { //middle value point test