Removed _BSD_SOURCE, _SVID_SOURCE, _GNU_SOURCE, _XOPEN_SOURCE.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/3/head
Michele Calgaro 6 years ago
parent 15a64bf9d5
commit 8c081c8888
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -21,11 +21,6 @@
* vncauth.c - Functions for VNC password management and authentication. * 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 #ifdef LIBVNCSERVER_HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif #endif

@ -2,9 +2,6 @@
* @example vncev.c * @example vncev.c
* This program is a simple server to show events coming from the client * This program is a simple server to show events coming from the client
*/ */
#ifdef __STRICT_ANSI__
#define _BSD_SOURCE
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>

@ -22,9 +22,6 @@
* listen.c - listen for incoming connections * listen.c - listen for incoming connections
*/ */
#ifdef __STRICT_ANSI__
#define _BSD_SOURCE
#endif
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef WIN32 #ifdef WIN32

@ -23,11 +23,6 @@
* rfbproto.c - functions to deal with client side of RFB protocol. * 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 #ifndef WIN32
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>

@ -22,14 +22,6 @@
* sockets.c - functions to deal with sockets. * 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 <unistd.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>

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

@ -30,10 +30,6 @@
#define strdup _strdup /* Prevent POSIX deprecation warnings */ #define strdup _strdup /* Prevent POSIX deprecation warnings */
#endif #endif
#ifdef __STRICT_ANSI__
#define _BSD_SOURCE
#define _POSIX_SOURCE
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

@ -23,11 +23,6 @@
* USA. * USA.
*/ */
#ifdef __STRICT_ANSI__
#define _BSD_SOURCE
#define _POSIX_SOURCE
#endif
#include <rfb/rfb.h> #include <rfb/rfb.h>
#include <ctype.h> #include <ctype.h>

@ -12,9 +12,6 @@
*/ */
extern "C" { extern "C" {
#ifdef __STRICT_ANSI__
#define _BSD_SOURCE
#endif
#include <rfb/rfb.h> #include <rfb/rfb.h>
#include <rfb/rfbregion.h> #include <rfb/rfbregion.h>
#include "private.h" #include "private.h"

@ -27,12 +27,6 @@
* USA. * USA.
*/ */
#ifdef __STRICT_ANSI__
#define _BSD_SOURCE
#define _POSIX_SOURCE
#define _XOPEN_SOURCE 600
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <rfb/rfb.h> #include <rfb/rfb.h>

@ -25,9 +25,6 @@
* USA. * USA.
*/ */
#ifdef __STRICT_ANSI__
#define _BSD_SOURCE
#endif
#include <string.h> #include <string.h>
#include <rfb/rfb.h> #include <rfb/rfb.h>
#include <rfb/rfbregion.h> #include <rfb/rfbregion.h>

@ -42,15 +42,6 @@
* USA. * 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> #include <rfb/rfb.h>
#ifdef LIBVNCSERVER_HAVE_SYS_TYPES_H #ifdef LIBVNCSERVER_HAVE_SYS_TYPES_H

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

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

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

Loading…
Cancel
Save