diff options
-rw-r--r-- | common/vncauth.c | 5 | ||||
-rw-r--r-- | examples/vncev.c | 3 | ||||
-rw-r--r-- | libvncclient/listen.c | 3 | ||||
-rw-r--r-- | libvncclient/rfbproto.c | 5 | ||||
-rw-r--r-- | libvncclient/sockets.c | 8 | ||||
-rw-r--r-- | libvncclient/tls_openssl.c | 4 | ||||
-rw-r--r-- | libvncclient/vncviewer.c | 4 | ||||
-rw-r--r-- | libvncserver/httpd.c | 5 | ||||
-rw-r--r-- | libvncserver/main.c | 3 | ||||
-rw-r--r-- | libvncserver/rfbserver.c | 6 | ||||
-rw-r--r-- | libvncserver/scale.c | 3 | ||||
-rw-r--r-- | libvncserver/sockets.c | 9 | ||||
-rw-r--r-- | libvncserver/websockets.c | 4 | ||||
-rw-r--r-- | test/copyrecttest.c | 3 | ||||
-rw-r--r-- | test/encodingstest.c | 3 |
15 files changed, 0 insertions, 68 deletions
diff --git a/common/vncauth.c b/common/vncauth.c index 0b20f53..9434ae4 100644 --- a/common/vncauth.c +++ b/common/vncauth.c @@ -21,11 +21,6 @@ * vncauth.c - Functions for VNC password management and authentication. */ -#ifdef __STRICT_ANSI__ -#define _BSD_SOURCE -#define _POSIX_SOURCE -#define _XOPEN_SOURCE 600 -#endif #ifdef LIBVNCSERVER_HAVE_SYS_TYPES_H #include <sys/types.h> #endif diff --git a/examples/vncev.c b/examples/vncev.c index b185746..a8e0884 100644 --- a/examples/vncev.c +++ b/examples/vncev.c @@ -2,9 +2,6 @@ * @example vncev.c * This program is a simple server to show events coming from the client */ -#ifdef __STRICT_ANSI__ -#define _BSD_SOURCE -#endif #include <stdio.h> #include <stdlib.h> #include <sys/types.h> 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> diff --git a/libvncserver/httpd.c b/libvncserver/httpd.c index 8634b15..80adbcf 100644 --- a/libvncserver/httpd.c +++ b/libvncserver/httpd.c @@ -23,11 +23,6 @@ * USA. */ -#ifdef __STRICT_ANSI__ -#define _BSD_SOURCE -#define _POSIX_SOURCE -#endif - #include <rfb/rfb.h> #include <ctype.h> diff --git a/libvncserver/main.c b/libvncserver/main.c index 4fbe036..c185eb8 100644 --- a/libvncserver/main.c +++ b/libvncserver/main.c @@ -12,9 +12,6 @@ */ extern "C" { - #ifdef __STRICT_ANSI__ - #define _BSD_SOURCE - #endif #include <rfb/rfb.h> #include <rfb/rfbregion.h> #include "private.h" diff --git a/libvncserver/rfbserver.c b/libvncserver/rfbserver.c index 44723ef..fa8423d 100644 --- a/libvncserver/rfbserver.c +++ b/libvncserver/rfbserver.c @@ -27,12 +27,6 @@ * USA. */ -#ifdef __STRICT_ANSI__ -#define _BSD_SOURCE -#define _POSIX_SOURCE -#define _XOPEN_SOURCE 600 -#endif - #include <stdio.h> #include <string.h> #include <rfb/rfb.h> diff --git a/libvncserver/scale.c b/libvncserver/scale.c index 3ca76dc..bf67f8e 100644 --- a/libvncserver/scale.c +++ b/libvncserver/scale.c @@ -25,9 +25,6 @@ * USA. */ -#ifdef __STRICT_ANSI__ -#define _BSD_SOURCE -#endif #include <string.h> #include <rfb/rfb.h> #include <rfb/rfbregion.h> diff --git a/libvncserver/sockets.c b/libvncserver/sockets.c index bbc3d90..e4fc52b 100644 --- a/libvncserver/sockets.c +++ b/libvncserver/sockets.c @@ -42,15 +42,6 @@ * USA. */ -#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 <rfb/rfb.h> #ifdef LIBVNCSERVER_HAVE_SYS_TYPES_H diff --git a/libvncserver/websockets.c b/libvncserver/websockets.c index bdec8f3..f5dd120 100644 --- a/libvncserver/websockets.c +++ b/libvncserver/websockets.c @@ -26,10 +26,6 @@ * USA. */ -#ifdef __STRICT_ANSI__ -#define _BSD_SOURCE -#endif - #include <rfb/rfb.h> /* errno */ #include <errno.h> diff --git a/test/copyrecttest.c b/test/copyrecttest.c index cd2a504..3564c0e 100644 --- a/test/copyrecttest.c +++ b/test/copyrecttest.c @@ -1,6 +1,3 @@ -#ifdef __STRICT_ANSI__ -#define _BSD_SOURCE -#endif #include <rfb/rfb.h> #include <math.h> diff --git a/test/encodingstest.c b/test/encodingstest.c index 715e887..1d8e861 100644 --- a/test/encodingstest.c +++ b/test/encodingstest.c @@ -1,6 +1,3 @@ -#ifdef __STRICT_ANSI__ -#define _BSD_SOURCE -#endif #include <time.h> #include <stdarg.h> #include <rfb/rfb.h> |