From b4119b94e38426dd35573c2ff9468fa4c41a05ac Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 13 Oct 2016 20:07:37 +0200 Subject: [PATCH] xspice, cm.h, swallow warnings --- src/include/ngspice/cm.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/include/ngspice/cm.h b/src/include/ngspice/cm.h index 3b13d15be..ca5988ad0 100644 --- a/src/include/ngspice/cm.h +++ b/src/include/ngspice/cm.h @@ -47,6 +47,13 @@ NON-STANDARD FEATURES #include +#if defined(_MSC_VER) +#include +#define fileno _fileno +#else +#include +#endif + #ifndef M_PI # define M_PI 3.14159265358979323846 #endif