summaryrefslogtreecommitdiff
path: root/gr-vocoder/lib
diff options
context:
space:
mode:
authorgnieboer <gnieboer@corpcomm.net>2016-05-22 10:38:19 +0300
committerJohnathan Corgan <johnathan@corganlabs.com>2016-05-30 13:25:54 -0700
commit23460e36094ad85c559a538918c3b40e76b2fa37 (patch)
treede433fef9de1f71f80718b0ca81d87e9684de659 /gr-vocoder/lib
parent25142dad0464bed59dc03672931aab637f82d376 (diff)
MSVC-specific fixes for compatibility
* Changed dtv_viterbi_decoder to use __GR_ATTR_ALIGNED macro for cross-compiler compatibility * Replace usleep() with boost equivalent for cross-compiler compatibility * Includes windows-specific headers for portaudio * Added macro to handle use of VLAs on non-C99 compilers (MSVC) using alloca to declare variable length arrays * Remove setting SO_LINGER option for the UDP source. SO_LINGER is not an applicable option for a UDP socket. Windows will throw an exception if set. Linux allows it to be set but does not use it. * VS 2013+ supports round()
Diffstat (limited to 'gr-vocoder/lib')
-rw-r--r--gr-vocoder/lib/codec2/fdmdv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-vocoder/lib/codec2/fdmdv.c b/gr-vocoder/lib/codec2/fdmdv.c
index 8855f76ae5..51d6bef544 100644
--- a/gr-vocoder/lib/codec2/fdmdv.c
+++ b/gr-vocoder/lib/codec2/fdmdv.c
@@ -25,7 +25,7 @@
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && (_MSC_VER < 1800) // round() not available before VS 2013
#define round(number) number < 0.0 ? ceil(number - 0.5) : floor(number + 0.5)
#endif