enable compiling with CYGWIN
This commit is contained in:
parent
038c18429f
commit
c2795a350a
|
|
@ -119,8 +119,13 @@ static void callback(ARGS, Mif_Callback_Reason_t reason)
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
|
||||||
static const char *exts[] = { "", ".so", ".DLL", NULL};
|
static const char *exts[] = { "", ".so", ".DLL", NULL};
|
||||||
|
#if defined (__CYGWIN__)
|
||||||
|
#define CMPFN strcasecmp // Ignores case.
|
||||||
|
#define TESTFN(f) (access(f, 4) == 0) // Checks for read access.
|
||||||
|
#else
|
||||||
#define CMPFN _stricmp // Ignores case.
|
#define CMPFN _stricmp // Ignores case.
|
||||||
#define TESTFN(f) (_access(f, 4) == 0) // Checks for read access.
|
#define TESTFN(f) (_access(f, 4) == 0) // Checks for read access.
|
||||||
|
#endif
|
||||||
#define SLIBFILE "DLL"
|
#define SLIBFILE "DLL"
|
||||||
#ifndef NGSPICELIBDIR
|
#ifndef NGSPICELIBDIR
|
||||||
#define NGSPICELIBDIR "C:\\Spice64\\lib\\ngspice" // Defined by configure?
|
#define NGSPICELIBDIR "C:\\Spice64\\lib\\ngspice" // Defined by configure?
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue