NGSPICE uses a more convenient function to generate DLL name
This commit is contained in:
parent
46ecfd8139
commit
0a6390701d
|
@ -37,10 +37,8 @@ NGSPICE::NGSPICE()
|
||||||
{
|
{
|
||||||
#ifdef __WINDOWS__
|
#ifdef __WINDOWS__
|
||||||
m_dll = new wxDynamicLibrary( "libngspice-0.dll" );
|
m_dll = new wxDynamicLibrary( "libngspice-0.dll" );
|
||||||
#elif __APPLE__
|
|
||||||
m_dll = new wxDynamicLibrary( "libngspice.dylib" );
|
|
||||||
#else
|
#else
|
||||||
m_dll = new wxDynamicLibrary( "libngspice.so" );
|
m_dll = new wxDynamicLibrary( wxDynamicLibrary::CanonicalizeName( "ngspice" ) );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if( !m_dll || !m_dll->IsLoaded() )
|
if( !m_dll || !m_dll->IsLoaded() )
|
||||||
|
|
Loading…
Reference in New Issue