std::vector< int > indices;\r
for ( unsigned int i=0; i<dsDevices.size(); i++ )\r
if ( dsDevices[i].found == false ) indices.push_back( i );\r
- for ( unsigned int nErased=0, unsigned int i=0; i<indices.size(); i++, nErased++ ) {\r
- dsDevices.erase( dsDevices.begin()-nErased );\r
- }\r
+ unsigned int nErased = 0;\r
+ for ( unsigned int i=0; i<indices.size(); i++ )\r
+ dsDevices.erase( dsDevices.begin()-nErased++ );\r
\r
return dsDevices.size();\r
}\r
AC_SUBST( sharedlib, ["librtaudio.so"] )
AC_SUBST( sharedname, ["librtaudio.so.\$(RELEASE)"] )
-AC_SUBST( libflags, ["-shared -Wl,-soname,\$(SHAREDLIB).\$(MAJOR) -o \$(SHAREDLIB).\$(RELEASE)"] )
+AC_SUBST( libflags, ["-shared -Wl,-soname,\$(SHARED).\$(MAJOR) -o \$(SHARED).\$(RELEASE)"] )
case $host in
*-apple*)
AC_SUBST( sharedlib, ["librtaudio.dylib"] )