summaryrefslogtreecommitdiff
path: root/gr-vocoder/lib/codec2/fdmdv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gr-vocoder/lib/codec2/fdmdv.c')
-rw-r--r--gr-vocoder/lib/codec2/fdmdv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gr-vocoder/lib/codec2/fdmdv.c b/gr-vocoder/lib/codec2/fdmdv.c
index 6af1cf4c6d..8855f76ae5 100644
--- a/gr-vocoder/lib/codec2/fdmdv.c
+++ b/gr-vocoder/lib/codec2/fdmdv.c
@@ -25,6 +25,10 @@
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#ifdef _MSC_VER
+#define round(number) number < 0.0 ? ceil(number - 0.5) : floor(number + 0.5)
+#endif
+
/*---------------------------------------------------------------------------*\
INCLUDES