FS-9009 [mod_avmd] #fix build on Windows

Windows VC doesn't accept function __attribute__(s)
This commit is contained in:
Piotr Gregor committed 2016-07-08 17:07:23 +01:00
1 parent 0379c2a60f
commit 6d614ac1a7
4 files changed
+17

No files matched your search

@@ -15,6 +15,11 @@
#include "avmd_buffer.h"
#ifdef WIN32
#define __attribute__(x)
#endif
double avmd_amplitude(circ_buffer_t *, size_t i, double f) __attribute__ ((nonnull(1)));
@@ -15,6 +15,12 @@
#include <math.h>
#include "avmd_buffer.h"
#ifdef WIN32
#define __attribute__(x)
#endif
/* Returns digital frequency estimation and amplitude estimation. */
extern double avmd_desa2(circ_buffer_t *b, size_t i, double *amplitude) __attribute__ ((nonnull(1,3)));
@@ -21,6 +21,11 @@
#include <switch.h>
#ifdef WIN32
#define __attribute__(x)
#endif
/* Instead of returning digital frequency estimation using
* result = 0.5 * acos(n/d),
* which involves expensive computation of arc cosine on
+1
View File
@@ -35,6 +35,7 @@
#include <stdlib.h>
#include <string.h>
#include <math.h>
#ifdef WIN32
#include <float.h>
#define ISNAN(x) (!!(_isnan(x)))