ref: b2e17402f895d4383d3fb0da3387a5d1417ad244
parent: 0045668fdecf33e793f270f6a251b07224b7ad40
author: Paul Brossier <piem@piem.org>
date: Thu Dec 20 12:16:27 EST 2018
[lib] add AUBIO_STRERROR macro
--- a/src/aubio_priv.h
+++ b/src/aubio_priv.h
@@ -324,6 +324,12 @@
#define isnan _isnan
#endif
+#if !defined(_MSC_VER)
+#define AUBIO_STRERROR(errno,buf,len) strerror_r(errno, buf, len)
+#else
+#define AUBIO_STRERROR(errno,buf,len) strerror_s(buf, len, errno)
+#endif
+
/* handy shortcuts */
#define DB2LIN(g) (POW(10.0,(g)*0.05f))
#define LIN2DB(v) (20.0*LOG10(v))