瀏覽代碼

Small change to configure.ac for prefix and removed 2 tabs in RtMidi.cpp

Gary Scavone 11 年之前
父節點
當前提交
c5a8f3a85c
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      RtMidi.cpp
  2. 1 1
      configure.ac

+ 2 - 2
RtMidi.cpp

@@ -1155,13 +1155,13 @@ static void *alsaMidiHandler( void *ptr )
     doDecode = false;
     switch ( ev->type ) {
 
-		case SND_SEQ_EVENT_PORT_SUBSCRIBED:
+    case SND_SEQ_EVENT_PORT_SUBSCRIBED:
 #if defined(__RTMIDI_DEBUG__)
       std::cout << "MidiInAlsa::alsaMidiHandler: port connection made!\n";
 #endif
       break;
 
-		case SND_SEQ_EVENT_PORT_UNSUBSCRIBED:
+    case SND_SEQ_EVENT_PORT_UNSUBSCRIBED:
 #if defined(__RTMIDI_DEBUG__)
       std::cerr << "MidiInAlsa::alsaMidiHandler: port connection has closed!\n";
       std::cout << "sender = " << (int) ev->data.connect.sender.client << ":"

+ 1 - 1
configure.ac

@@ -27,7 +27,7 @@ AC_ARG_ENABLE(debug,
   [AC_SUBST( cppflag, [] ) AC_SUBST( cxxflag, [-O3] ) AC_SUBST( object_path, [Release] ) AC_MSG_RESULT(no)])
 
 # Set paths if prefix is defined
-if test x"$prefix" != x; then
+if test x"$prefix" != x && test x$prefix != xNONE; then
   LIBS="$LIBS -L$prefix/lib"
   CPPFLAGS="$CPPFLAGS -I$prefix/include"
 fi