xspice/cmpp, compatibility with MS Visual Studio
This commit is contained in:
parent
caee377fd3
commit
51bc944def
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue