Skip to content

Commit

Permalink
- Fixed FTBFS when configure --disable-vst.
Browse files Browse the repository at this point in the history
  • Loading branch information
rncbc committed Mar 29, 2016
1 parent dfe2a90 commit 228a6ef
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
13 changes: 8 additions & 5 deletions src/qtractor_vst_scan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#include <stdint.h>


#ifdef CONFIG_VST

#if !defined(__WIN32__) && !defined(_WIN32) && !defined(WIN32)
#define __cdecl
#endif
Expand Down Expand Up @@ -396,21 +398,21 @@ static void qtractor_vst_scan_file ( const QString& sFilename )
}
}

#endif // CONFIG_VST


//-------------------------------------------------------------------------
// main - The main program trunk.
//

#include <QCoreApplication>


int main ( int argc, char **argv )
{
QCoreApplication app(argc, argv);
#ifdef CONFIG_DEBUG
qDebug("qtractor_vst_scan: hello.");
qDebug("%s: hello.", argv[0]);
#endif

QTextStream sin(stdin);
while (!sin.atEnd()) {
const QString& sLine = sin.readLine();
Expand All @@ -419,12 +421,13 @@ int main ( int argc, char **argv )
const QStringList& req = sLine.split(':');
const QString& sHint = req.at(0).toUpper();
const QString& sFilename = req.at(1);
#ifdef CONFIG_VST
if (sHint == "VST")
qtractor_vst_scan_file(sFilename);
#endif
}

#ifdef CONFIG_DEBUG
qDebug("qtractor_vst_scan: bye.");
qDebug("%s: bye.", argv[0]);
#endif
return 0;
}
Expand Down
9 changes: 7 additions & 2 deletions src/qtractor_vst_scan.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@

// Forward decls.
class QLibrary;
class AEffect;


#ifdef CONFIG_VST

//----------------------------------------------------------------------
// class qtractor_vst_scan -- VST plugin (bare bones) interface.
//

class AEffect;

class qtractor_vst_scan
{
public:
Expand Down Expand Up @@ -83,7 +86,9 @@ class qtractor_vst_scan
QString m_sName;
};

#endif // CONFIG_VST


#endif // __qtractor_vst_scan_h
#endif // __qtractor_vst_scan_h

// end of qtractor_vst_scan.h

0 comments on commit 228a6ef

Please sign in to comment.