PLETE_FUNCTIONAL from SimGear and FlightGear.
As a result, SG_HAVE_STD_INCLUDES is now *always* set, so I will get the boring
fixes for that done, but separately. I'm still auditing the other things in comp
ilers.h - there's a lot that can die now BORLAND is gone.
#include <simgear/math/sg_geodesy.hxx>
#include <simgear/structure/exception.hxx>
#include <simgear/constants.h>
-#ifdef __BORLANDC__
-# define exception c_exception
-#endif
#include <simgear/props/props.hxx>
#include <Main/globals.hxx>
#include <Main/fg_props.hxx>
#include <simgear/compiler.h>
-#if defined( SG_HAVE_STD_INCLUDES ) || defined( __BORLANDC__ ) || (__APPLE__)
# include <fstream>
-#else
-# include <fstream.h>
-#endif
-
#include <map>
#include <list>
#include <string>
#include <Main/fg_props.hxx>
-#ifdef SG_HAVE_STD_INCLUDES
# include <iosfwd>
-#elif defined( SG_HAVE_NATIVE_SGI_COMPILERS )
-# include <iostream.h>
-#elif defined( __BORLANDC__ )
-# include <iostream>
-#else
-# include <istream.h>
-#endif
#include "ATC.hxx"
#include "transmission.hxx"
#include <simgear/magvar/magvar.hxx>
#include <simgear/timing/sg_time.hxx>
-#ifdef SG_HAVE_STD_INCLUDES
# include <iosfwd>
-#elif defined( __BORLANDC__ ) || (__APPLE__)
-# include <iostream>
-#else
-# include <istream.h>
-#endif
#include "ATC.hxx"
#include <Main/fg_props.hxx>
-#ifdef SG_HAVE_STD_INCLUDES
# include <istream>
-#include <iomanip>
-#elif defined( SG_HAVE_NATIVE_SGI_COMPILERS )
-# include <iostream.h>
-#elif defined( __BORLANDC__ )
-# include <iostream>
-#else
-# include <istream.h>
-#include <iomanip.h>
-#endif
#include "ATC.hxx"
# include <windows.h>
#endif
-#ifdef __BORLANDC__
-# define exception c_exception
-#endif
-
#include <math.h>
-
#include <stdlib.h>
#include <stdio.h> // char related functions
#include <string.h> // strcmp()
#include <simgear/compiler.h>
-#ifdef SG_MATH_EXCEPTION_CLASH
-# include <math.h>
-#endif
-
#include STL_STRING
#include <simgear/constants.h>
#include <simgear/compiler.h>
#include <stdio.h> // size_t
-#ifdef SG_MATH_EXCEPTION_CLASH
-# include <math.h>
-#endif
#include STL_STRING
sckt = sckt_in = size = 0;
connected = false;
- #if defined(__BORLANDC__) || defined(_MSC_VER) || defined(__MINGW32__)
+ #if defined(_MSC_VER) || defined(__MINGW32__)
WSADATA wsaData;
int wsaReturnCode;
wsaReturnCode = WSAStartup(MAKEWORD(1,1), &wsaData);
sckt = sckt_in = size = 0;
connected = false;
- #if defined(__BORLANDC__) || defined(_MSC_VER) || defined(__MINGW32__)
+ #if defined(_MSC_VER) || defined(__MINGW32__)
WSADATA wsaData;
int wsaReturnCode;
wsaReturnCode = WSAStartup(MAKEWORD(1,1), &wsaData);
connected = false;
unsigned long NoBlock = true;
- #if defined(__BORLANDC__) || defined(_MSC_VER) || defined(__MINGW32__)
+ #if defined(_MSC_VER) || defined(__MINGW32__)
WSADATA wsaData;
int wsaReturnCode;
wsaReturnCode = WSAStartup(MAKEWORD(1,1), &wsaData);
if (bind(sckt, (struct sockaddr*)&scktName, len) == 0) { // successful
cout << "Successfully bound to socket for input on port " << port << endl;
if (listen(sckt, 5) >= 0) { // successful listen()
- #if defined(__BORLANDC__) || defined(_MSC_VER) || defined(__MINGW32__)
+ #if defined(_MSC_VER) || defined(__MINGW32__)
ioctlsocket(sckt, FIONBIO, &NoBlock);
sckt_in = accept(sckt, (struct sockaddr*)&scktName, &len);
#else
{
if (sckt) shutdown(sckt,2);
if (sckt_in) shutdown(sckt_in,2);
-
- #ifdef __BORLANDC__
- WSACleanup();
- #endif
Debug(1);
}
// class attribute and pass as a reference?
if (sckt_in <= 0) {
- #if defined(__BORLANDC__) || defined(_MSC_VER) || defined(__MINGW32__)
+ #if defined(_MSC_VER) || defined(__MINGW32__)
sckt_in = accept(sckt, (struct sockaddr*)&scktName, &len);
#else
sckt_in = accept(sckt, (struct sockaddr*)&scktName, (socklen_t*)&len);
#endif
if (sckt_in > 0) {
- #if defined(__BORLANDC__) || defined(_MSC_VER) || defined(__MINGW32__)
+ #if defined(_MSC_VER) || defined(__MINGW32__)
ioctlsocket(sckt_in, FIONBIO,&NoBlock);
#else
ioctl(sckt_in, FIONBIO, &NoBlock);
using std::cout;
using std::endl;
-#if defined(__BORLANDC__) || defined(_MSC_VER) || defined(__MINGW32__)
+#if defined(_MSC_VER) || defined(__MINGW32__)
#include <winsock.h>
#include <io.h>
#else
#include <simgear/compiler.h>
-#ifdef SG_MATH_EXCEPTION_CLASH
-# include <math.h>
-#endif
-
#ifdef HAVE_WINDOWS_H
# include <windows.h>
#endif
#include <simgear/compiler.h>
-#ifdef SG_MATH_EXCEPTION_CLASH
-# include <math.h>
-#endif
-
#ifdef HAVE_WINDOWS_H
# include <windows.h>
#endif
# include <config.h>
#endif
-// For BC 5.01 this must be included before OpenGL includes.
-#ifdef SG_MATH_EXCEPTION_CLASH
-# include <math.h>
-#endif
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h> // strcmp()
# include <signal.h>
#endif
-#ifdef SG_MATH_EXCEPTION_CLASH
-# include <math.h>
-#endif
-
#ifdef HAVE_WINDOWS_H
# include <windows.h>
# include <float.h>
#include <simgear/compiler.h>
#include <simgear/misc/sgstream.hxx>
-#ifdef SG_HAVE_STD_INCLUDES
# include <istream>
-#elif defined( __BORLANDC__ ) || (__APPLE__)
-# include <iostream>
-#else
-# include <istream.h>
-#endif
#include STL_STRING
#include <simgear/structure/SGSharedPtr.hxx>
#include <simgear/structure/SGReferenced.hxx>
-#ifdef SG_HAVE_STD_INCLUDES
# include <istream>
-#elif defined( __BORLANDC__ ) || (__APPLE__)
-# include <iostream>
-#else
-# include <istream.h>
-#endif
#define FG_NAV_DEFAULT_RANGE 50 // nm
#define FG_LOC_DEFAULT_RANGE 18 // nm
#include <simgear/debug/logstream.hxx>
#include <simgear/structure/exception.hxx>
-#ifdef __BORLANDC__
-# define exception c_exception
-#endif
#include <simgear/misc/sg_path.hxx>
#include <simgear/props/props.hxx>
#include <simgear/sound/xmlsound.hxx>
#include SG_GL_H
-#ifdef SG_MATH_EXCEPTION_CLASH
-# define exception c_exception
-#endif
-
#ifdef SG_HAVE_STD_INCLUDES
# include <cmath>
#else