src/aubio_priv.h: no attributes for ms compilers
[aubio.git] / src / aubio_priv.h
index b19520b..81cf24a 100644 (file)
@@ -217,6 +217,11 @@ typedef enum {
 #define SAFE_LOG10(f) LOG10(CEIL_DENORMAL(f))
 #define SAFE_LOG(f)   LOG(CEIL_DENORMAL(f))
 
+/** silence unused parameter warning by adding an attribute */
+#if defined(__GNUC__)
 #define UNUSED __attribute__((unused))
+#else
+#define UNUSED
+#endif
 
 #endif /* _AUBIO__PRIV_H */