mirror of
https://github.com/simtactics/niotso.git
synced 2025-10-17 05:03:31 -04:00
work in progress, cleaned up the directories and split them up into folder which make more sense, Still need to compile libvitaboy and all the tools
This commit is contained in:
parent
66ce473514
commit
948bd8474c
1786 changed files with 571812 additions and 15332 deletions
34
deps/libpq/win32.h
vendored
Normal file
34
deps/libpq/win32.h
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* src/interfaces/libpq/win32.h
|
||||
*/
|
||||
#ifndef __win32_h_included
|
||||
#define __win32_h_included
|
||||
|
||||
/*
|
||||
* Some compatibility functions
|
||||
*/
|
||||
#ifdef __BORLANDC__
|
||||
#define _timeb timeb
|
||||
#define _ftime(a) ftime(a)
|
||||
#define _errno errno
|
||||
#define popen(a,b) _popen(a,b)
|
||||
#else
|
||||
/* open provided elsewhere */
|
||||
#define close(a) _close(a)
|
||||
#define read(a,b,c) _read(a,b,c)
|
||||
#define write(a,b,c) _write(a,b,c)
|
||||
#endif
|
||||
|
||||
#undef EAGAIN /* doesn't apply on sockets */
|
||||
#undef EINTR
|
||||
#define EINTR WSAEINTR
|
||||
#define EWOULDBLOCK WSAEWOULDBLOCK
|
||||
#define ECONNRESET WSAECONNRESET
|
||||
#define EINPROGRESS WSAEINPROGRESS
|
||||
|
||||
/*
|
||||
* support for handling Windows Socket errors
|
||||
*/
|
||||
extern const char *winsock_strerror(int err, char *strerrbuf, size_t buflen);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue