diff --git a/src/frontend/inp.c b/src/frontend/inp.c index c65fb77a7..3a581c40a 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -15,7 +15,7 @@ $Id$ * the listing routines. */ -#ifndef _MSC_VER +#ifdef HAVE_LIBGEN_H /* dirname() */ #include #endif #include "ngspice.h" diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 2ba3f27e5..895abfe81 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -30,7 +30,7 @@ Author: 1985 Wayne A. Christopher * Fixed crash where a NULL pointer gets freed in inp_readall() */ -#ifndef _MSC_VER +#ifdef HAVE_LIBGEN_H /* dirname() */ #include #endif #include