Empty out and remove sysdep_w32.c sysdep_w32.h
Not much remains in sysdep_w32.c, and it's mostly for main.c. Move that there, and the rest to misc.h.
This commit is contained in:
parent
4d40a27542
commit
518c8d6fbf
5 changed files with 72 additions and 152 deletions
|
@ -35,9 +35,6 @@
|
|||
#define MISC_H
|
||||
|
||||
#include <stdio.h>
|
||||
#ifdef _WIN32
|
||||
#include "sysdep_w32.h"
|
||||
#endif
|
||||
|
||||
#define MAX(a, b) ((a) >= (b) ? (a) : (b))
|
||||
#define MIN(a,b) ((a) < (b) ? (a) : (b))
|
||||
|
@ -58,6 +55,7 @@ void putse(void);
|
|||
#define putso() ((void)0)
|
||||
#define putse() ((void)0)
|
||||
#endif /* !HAVE_CURSES_TERMINFO */
|
||||
|
||||
int recvline(int s, char *buf);
|
||||
int parseid(char *);
|
||||
int expect(int s, int match, char *buf);
|
||||
|
@ -68,4 +66,10 @@ void sendcmd(int s, char *cmd, char *arg);
|
|||
void servercmd(int, char *, int);
|
||||
void outch(char);
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define pclose _pclose
|
||||
#define popen _popen
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue