xspice/cmpp, compatibility with MS Visual Studio

This commit is contained in:
h_vogt 2015-12-22 18:06:33 +01:00 committed by rlar
parent caee377fd3
commit 51bc944def
2 changed files with 10 additions and 0 deletions

View File

@ -45,6 +45,14 @@ NON-STANDARD FEATURES
#define MODPATH_FILENAME "modpath.lst"
#define UDNPATH_FILENAME "udnpath.lst"
#ifdef _MSC_VER
#include <io.h>
#define strdup _strdup
#define unlink _unlink
#define isatty _isatty
#define fileno _fileno
#endif
/* *********************************************************************** */
typedef enum {

View File

@ -57,7 +57,9 @@ NON-STANDARD FEATURES
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef _MSC_VER
#include <unistd.h>
#endif
#include "mod_yacc_y.h"
extern int mod_yyparse(void);