diff options
| author | Daniel Cohen Gindi <danielgindi@gmail.com> | 2014-09-20 16:39:16 +0300 |
|---|---|---|
| committer | Daniel Cohen Gindi <danielgindi@gmail.com> | 2014-09-20 17:46:30 +0300 |
| commit | fbf48c65f343c2d3cce8ccd69975e9526f209fc5 (patch) | |
| tree | c29ca641088bdd76a07d3cedf5aae66fbde6ff3c /libvncclient/rfbproto.c | |
| parent | fdf5f8876f5f4bd08aa3dc47268c1f4c4590c0bb (diff) | |
| download | libtdevnc-fbf48c65f343c2d3cce8ccd69975e9526f209fc5.tar.gz libtdevnc-fbf48c65f343c2d3cce8ccd69975e9526f209fc5.zip | |
`strings.h` and `resolv.h` are not available on MSVC, and some POSIX functions are renamed or deprecated
For all of those missing/deprecated POSIX functions, we just add a macro mapping to the _underscored version of MSVC.
Diffstat (limited to 'libvncclient/rfbproto.c')
| -rw-r--r-- | libvncclient/rfbproto.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c index 0afa3dc..5893a24 100644 --- a/libvncclient/rfbproto.c +++ b/libvncclient/rfbproto.c @@ -53,7 +53,12 @@ #endif #include <jpeglib.h> #endif + +#ifndef _MSC_VER +/* Strings.h is not available in MSVC */ #include <strings.h> +#endif + #include <stdarg.h> #include <time.h> @@ -65,7 +70,7 @@ #include "tls.h" #ifdef _MSC_VER -# define snprintf _snprintf +# define snprintf _snprintf /* MSVC went straight to the underscored syntax */ #endif /* |
