shithub: sox

Download patch

ref: 15353655d37c5ef749375ac5717b971d676fe279
parent: c5ce1c5d96fcf28ccfec7d03b94f0f1c30eda657
author: idigdoug <idigdoug>
date: Fri Jan 1 20:48:22 EST 2010

Define _countof for platforms where not already defined (i.e. MinGW).

--- a/src/win32-ltdl.c
+++ b/src/win32-ltdl.c
@@ -21,6 +21,10 @@
 #define WIN32_LEAN_AND_MEAN 1
 #include <windows.h>
 
+#ifndef _countof
+#define _countof(A) (sizeof(A)/sizeof((A)[0]))
+#endif
+
 static DWORD
 s_dwLastError;