dirname prototype from libgen.h if available

This commit is contained in:
dwarning 2007-11-25 20:03:23 +00:00
parent 140b5d5e28
commit ca4c80433f
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ $Id$
* the listing routines.
*/
#ifndef _MSC_VER
#ifdef HAVE_LIBGEN_H /* dirname() */
#include <libgen.h>
#endif
#include "ngspice.h"

View File

@ -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 <libgen.h>
#endif
#include <config.h>