[OpenWalnut-Dev] compatibility with newer version of biosig

Alois Schloegl alois.schloegl at ist.ac.at
Thu Nov 29 11:06:09 CET 2012


For compatibility with newer versions of libbiosig, I suggest to add the
following patch.

Alois




diff -r 5b200056286b src/modules/data/io/WReaderBiosig.cpp
--- a/src/modules/data/io/WReaderBiosig.cpp	Wed Nov 28 14:36:39 2012 +0100
+++ b/src/modules/data/io/WReaderBiosig.cpp	Thu Nov 29 11:04:05 2012 +0100
@@ -76,7 +76,11 @@

     hd =  sopen( m_fname.c_str(), "r", 0 );

+#if (BIOSIG_VERSION >= 10400)
+    switch( serror2(hd) )
+#else
     switch( B4C_ERRNUM )
+#endif
     {
         case B4C_NO_ERROR:
             break;


More information about the OpenWalnut-Dev mailing list