From ca4c80433f733361904a996b304c41eea73f52e8 Mon Sep 17 00:00:00 2001 From: dwarning Date: Sun, 25 Nov 2007 20:03:23 +0000 Subject: [PATCH] dirname prototype from libgen.h if available --- src/frontend/inp.c | 2 +- src/frontend/inpcom.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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