rendered paste body// Test if we have _GNU_SOURCE before the next step will mess up
// setting __USE_GNU
// (only needed for gcc-2.95 compatibility, gcc 3.2 always defines it)
#include <wx/setup.h>
// Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
// to detect if this is a *BSD system
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef __BORLANDC__
# pragma hdrstop
#endif
#include <wx/log.h>
// standard
#if defined(__WXMSW__) && !defined(__GNUWIN32__) && !defined(__WXWINE__) && !defined(__WXMICROWIN__)
# include <io.h>
#ifndef __SALFORDC__
# define WIN32_LEAN_AND_MEAN
# define NOSERVICE
# define NOIME
# define NOATOM
# define NOGDI
# define NOGDICAPMASKS
# define NOMETAFILE
# define NOMINMAX
# define NOMSG
# define NOOPENFILE
# define NORASTEROPS
# define NOSCROLL
# define NOSOUND
# define NOSYSMETRICS
# define NOTEXTMETRIC
# define NOWH
# define NOCOMM
# define NOKANJI
# define NOCRYPT
# define NOMCX
#endif
#elif (defined(__UNIX__) || defined(__GNUWIN32__))
# include <unistd.h>
# ifdef __GNUWIN32__
# include <windows.h>
# endif
#elif defined(__DOS__)
# if defined(__WATCOMC__)
# include <io.h>
# elif defined(__DJGPP__)
# include <io.h>
# include <unistd.h>
# include <cstdio>
# else
# error "Please specify the header with file functions declarations."
# endif
#elif (defined(__WXPM__))
# include <io.h>
#elif (defined(__WXSTUBS__))
// Have to ifdef this for different environments
# include <io.h>
#elif (defined(__WXMAC__))
#if __MSL__ < 0x6000
int access( const char *path, int mode ) { return 0 ; }
#else
int _access( const char *path, int mode ) { return 0 ; }
#endif
char* mktemp( char * path ) { return path ;}
# include <stat.h>
# include <unistd.h>
#else
# error "Please specify the header with file functions declarations."
#endif //Win/UNIX
#include <cstdio> // SEEK_xxx constants
#include <fcntl.h> // O_RDONLY &c
#if !defined(__MWERKS__) || defined(__WXMSW__)
# include <sys/types.h> // needed for stat
# include <sys/stat.h> // stat
#endif