summaryrefslogtreecommitdiffstats
path: root/libvncclient
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-10-08 21:48:14 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-10-08 21:59:54 +0900
commit8c081c8888bccbf5adfe0fc4ec518e2cbfba9871 (patch)
tree9539c7e560efa4c8d8534c3fc60146a20fac157b /libvncclient
parent15a64bf9d5058a7290bf98fcb14bc03648a39814 (diff)
downloadlibtdevnc-8c081c8888bccbf5adfe0fc4ec518e2cbfba9871.tar.gz
libtdevnc-8c081c8888bccbf5adfe0fc4ec518e2cbfba9871.zip
Removed _BSD_SOURCE, _SVID_SOURCE, _GNU_SOURCE, _XOPEN_SOURCE.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'libvncclient')
-rw-r--r--libvncclient/listen.c3
-rw-r--r--libvncclient/rfbproto.c5
-rw-r--r--libvncclient/sockets.c8
-rw-r--r--libvncclient/tls_openssl.c4
-rw-r--r--libvncclient/vncviewer.c4
5 files changed, 0 insertions, 24 deletions
diff --git a/libvncclient/listen.c b/libvncclient/listen.c
index e989d6a..37def52 100644
--- a/libvncclient/listen.c
+++ b/libvncclient/listen.c
@@ -22,9 +22,6 @@
* listen.c - listen for incoming connections
*/
-#ifdef __STRICT_ANSI__
-#define _BSD_SOURCE
-#endif
#include <unistd.h>
#include <sys/types.h>
#ifdef WIN32
diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c
index 1f4b646..44d0a46 100644
--- a/libvncclient/rfbproto.c
+++ b/libvncclient/rfbproto.c
@@ -23,11 +23,6 @@
* rfbproto.c - functions to deal with client side of RFB protocol.
*/
-#ifdef __STRICT_ANSI__
-#define _BSD_SOURCE
-#define _POSIX_SOURCE
-#define _XOPEN_SOURCE 600
-#endif
#ifndef WIN32
#include <unistd.h>
#include <sys/types.h>
diff --git a/libvncclient/sockets.c b/libvncclient/sockets.c
index 2963432..8d2eb98 100644
--- a/libvncclient/sockets.c
+++ b/libvncclient/sockets.c
@@ -22,14 +22,6 @@
* sockets.c - functions to deal with sockets.
*/
-#ifdef __STRICT_ANSI__
-#define _BSD_SOURCE
-#ifdef __linux__
-/* Setting this on other systems hides definitions such as INADDR_LOOPBACK.
- * The check should be for __GLIBC__ in fact. */
-# define _POSIX_SOURCE
-#endif
-#endif
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/libvncclient/tls_openssl.c b/libvncclient/tls_openssl.c
index a531778..00d031d 100644
--- a/libvncclient/tls_openssl.c
+++ b/libvncclient/tls_openssl.c
@@ -18,10 +18,6 @@
* USA.
*/
-#ifndef _MSC_VER
-#define _XOPEN_SOURCE 500
-#endif
-
#include <rfb/rfbclient.h>
#include <errno.h>
diff --git a/libvncclient/vncviewer.c b/libvncclient/vncviewer.c
index 3f85c06..8a59c6d 100644
--- a/libvncclient/vncviewer.c
+++ b/libvncclient/vncviewer.c
@@ -30,10 +30,6 @@
#define strdup _strdup /* Prevent POSIX deprecation warnings */
#endif
-#ifdef __STRICT_ANSI__
-#define _BSD_SOURCE
-#define _POSIX_SOURCE
-#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>