diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2014-07-07 15:31:33 -0700 |
---|---|---|
committer | Nicholas Corgan <nick.corgan@ettus.com> | 2014-07-07 15:31:33 -0700 |
commit | 3b6ca994ca2219d3834814d3175ef6aec04b33fb (patch) | |
tree | f3b58aee799276f40317f518eb548b1fd16b0be5 /gr-vocoder/lib/codec2/fdmdv.c | |
parent | 597b93798a804cde1783d6d2ab53b348d57c44cd (diff) |
Windows compatibility fixes
* Fixed usage of Windows thread-naming API, changed minimum Windows version
* Fixed MSVC usage of isnan, round
Diffstat (limited to 'gr-vocoder/lib/codec2/fdmdv.c')
-rw-r--r-- | gr-vocoder/lib/codec2/fdmdv.c | 4 |
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 |