From 697facdc30f2a19b1865386067cb95221ff92cde Mon Sep 17 00:00:00 2001 From: h_vogt Date: Wed, 4 Oct 2017 14:21:34 +0200 Subject: [PATCH] #define fopen newfopen and header for MINGW and MS VS --- src/include/ngspice/ngspice.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/include/ngspice/ngspice.h b/src/include/ngspice/ngspice.h index 801d70953..aafff44b6 100644 --- a/src/include/ngspice/ngspice.h +++ b/src/include/ngspice/ngspice.h @@ -218,6 +218,13 @@ extern double x_atanh(double); #endif #endif +#ifndef EXT_ASC +#if defined(__MINGW__) || defined(_MSC_VER) +#define fopen newfopen +extern FILE *newfopen(char *fn, char* md); +#endif +#endif + #if defined(__GNUC__) #define ATTRIBUTE_NORETURN __attribute__ ((noreturn)) #elif defined(_MSC_VER)