fixes for compilation on windows

This commit is contained in:
pascalkuthe 2022-10-02 23:00:29 +02:00
parent c60ab4203d
commit ca5b294dbe
No known key found for this signature in database
GPG Key ID: D715E8655AE166A6
3 changed files with 3 additions and 4 deletions

View File

@ -120,7 +120,7 @@ ngspice_SOURCES = \
ngspice_CPPFLAGS = $(AM_CPPFLAGS) -DSIMULATOR
if WINGUI
ngspice_LDFLAGS = -municode $(AM_LDFLAGS) -ldl
ngspice_LDFLAGS = -municode $(AM_LDFLAGS)
ngspice_SOURCES += winmain.c hist_info.c
else
ngspice_LDFLAGS =

View File

@ -105,7 +105,6 @@ extern int OSDIparam(int param, IFvalue *value, GENinstance *instPtr,
}
extern int OSDImParam(int param, IFvalue *value, GENmodel *modelPtr) {
NG_IGNORE(select);
OsdiRegistryEntry *entry = osdi_reg_entry_model(modelPtr);
const OsdiDescriptor *descr = entry->descriptor;

View File

@ -67,7 +67,7 @@ static char *resolve_path(const char *name) {
char *const buf = ds_get_buf(&ds);
buf[0] = buf[1];
buf[1] = ':';
char *const resolved_path = inp_pathresolve(buf);
char *const resolved_path = resolve_path(buf);
ds_free(&ds);
return resolved_path;
}
@ -92,7 +92,7 @@ static char *resolve_path(const char *name) {
#endif
return (char *)NULL;
} /* end of function inp_pathresolve */
}
static char *resolve_input_path(const char *name) {
/* if name is an absolute path name,