Remove useless feature test macros
parent
9a2a318991
commit
d4faccba28
|
@ -71,11 +71,6 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
/* MS compilers don't have strncasecmp */
|
||||
#ifdef _MSC_VER
|
||||
#define strncasecmp _strnicmp
|
||||
#endif
|
||||
|
||||
#define rfbMax(a,b) (((a)>(b))?(a):(b))
|
||||
#include <sys/time.h>
|
||||
#include <netinet/in.h>
|
||||
|
|
|
@ -21,12 +21,7 @@
|
|||
* vncauth.c - Functions for VNC password management and authentication.
|
||||
*/
|
||||
|
||||
#include <rfb/rfbproto.h>
|
||||
#ifdef __STRICT_ANSI__
|
||||
#define _BSD_SOURCE
|
||||
#define _POSIX_SOURCE
|
||||
#define _XOPEN_SOURCE 600
|
||||
#endif
|
||||
#include "rfb/rfbproto.h"
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -24,11 +24,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
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
|
12
src/sasl.c
12
src/sasl.c
|
@ -29,14 +29,8 @@
|
|||
* sasl.c - functions to deal with client side of the SASL protocol.
|
||||
*/
|
||||
|
||||
#ifdef __STRICT_ANSI__
|
||||
#define _BSD_SOURCE
|
||||
#define _POSIX_SOURCE
|
||||
#define _XOPEN_SOURCE 600
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <rfb/rfbclient.h>
|
||||
#include "rfb/rfbclient.h"
|
||||
|
||||
#include "sockets.h"
|
||||
|
||||
|
@ -44,10 +38,6 @@
|
|||
|
||||
#include "tls.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# define snprintf _snprintf /* MSVC went straight to the underscored syntax */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* NB, keep in sync with similar method in qemud/remote.c
|
||||
*/
|
||||
|
|
|
@ -23,14 +23,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>
|
||||
|
|
|
@ -20,20 +20,11 @@
|
|||
/*
|
||||
* vncviewer.c - the Xt-based VNC viewer.
|
||||
*/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#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>
|
||||
#include <time.h>
|
||||
#include <rfb/rfbclient.h>
|
||||
#include "rfb/rfbclient.h"
|
||||
#include "tls.h"
|
||||
|
||||
static void Dummy(rfbClient* client) {
|
||||
|
|
Loading…
Reference in New Issue