NGSPICE uses a more convenient function to generate DLL name

This commit is contained in:
Maciej Suminski 2016-08-11 14:42:16 +02:00
parent 46ecfd8139
commit 0a6390701d
1 changed files with 1 additions and 3 deletions

View File

@ -37,10 +37,8 @@ NGSPICE::NGSPICE()
{
#ifdef __WINDOWS__
m_dll = new wxDynamicLibrary( "libngspice-0.dll" );
#elif __APPLE__
m_dll = new wxDynamicLibrary( "libngspice.dylib" );
#else
m_dll = new wxDynamicLibrary( "libngspice.so" );
m_dll = new wxDynamicLibrary( wxDynamicLibrary::CanonicalizeName( "ngspice" ) );
#endif
if( !m_dll || !m_dll->IsLoaded() )