Browse Source

enable compiling with CYGWIN

pre-master-46
Holger Vogt 2 years ago
parent
commit
4a1698c22d
  1. 5
      src/xspice/icm/digital/d_cosim/cfunc.mod

5
src/xspice/icm/digital/d_cosim/cfunc.mod

@ -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…
Cancel
Save