Browse Source

Removed _BSD_SOURCE, _SVID_SOURCE, _GNU_SOURCE, _XOPEN_SOURCE.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/3/head
Michele Calgaro 4 years ago
parent
commit
8c081c8888
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF
  1. 5
      common/vncauth.c
  2. 3
      examples/vncev.c
  3. 3
      libvncclient/listen.c
  4. 5
      libvncclient/rfbproto.c
  5. 8
      libvncclient/sockets.c
  6. 4
      libvncclient/tls_openssl.c
  7. 4
      libvncclient/vncviewer.c
  8. 5
      libvncserver/httpd.c
  9. 3
      libvncserver/main.c
  10. 6
      libvncserver/rfbserver.c
  11. 3
      libvncserver/scale.c
  12. 9
      libvncserver/sockets.c
  13. 4
      libvncserver/websockets.c
  14. 3
      test/copyrecttest.c
  15. 3
      test/encodingstest.c

5
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

3
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>

3
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

5
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>

8
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>

4
libvncclient/tls_openssl.c

@ -18,10 +18,6 @@
* USA.
*/
#ifndef _MSC_VER
#define _XOPEN_SOURCE 500
#endif
#include <rfb/rfbclient.h>
#include <errno.h>

4
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>

5
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>

3
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"

6
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>

3
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>

9
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

4
libvncserver/websockets.c

@ -26,10 +26,6 @@
* USA.
*/
#ifdef __STRICT_ANSI__
#define _BSD_SOURCE
#endif
#include <rfb/rfb.h>
/* errno */
#include <errno.h>

3
test/copyrecttest.c

@ -1,6 +1,3 @@
#ifdef __STRICT_ANSI__
#define _BSD_SOURCE
#endif
#include <rfb/rfb.h>
#include <math.h>

3
test/encodingstest.c

@ -1,6 +1,3 @@
#ifdef __STRICT_ANSI__
#define _BSD_SOURCE
#endif
#include <time.h>
#include <stdarg.h>
#include <rfb/rfb.h>

Loading…
Cancel
Save