Martin Spott wrote:

> --- SimGear/simgear/misc/stdint.hxx~  2005-10-03 18:53:28.606579000 +0200
> +++ SimGear/simgear/misc/stdint.hxx   2005-10-03 18:53:28.632024750 +0200
> @@ -56,7 +56,7 @@
>  typedef unsigned short   uint16_t;
>  typedef unsigned int     uint32_t;
>  typedef unsigned __int64 uint64_t;
> -#elif defined(sgi)
> +#elif defined(sgi) || defined( __sun__ )
>  # include <sys/types.h>
>  #else
>  # include <stdint.h>

I remembered Andy's pointer to http://predef.sourceforge.net/preos.html
and had a look at the different ways how Solaris-specific defines are
currently implemented within FlightGear and required libraries:


plib/src/util/ul.h:
#elif defined(SOLARIS) || defined(sun)

SimGear/simgear/compiler.h:
#if defined ( sun )

SimGear/simgear/nasal/nasal.h:
      defined(sun386)

SimGear/simgear/timing/sg_time.cxx:
#   if defined( __linux__ ) || defined( __sun__ ) ||defined(__CYGWIN__)

FlightGear/src/AIModel/AIAircraft.cxx:
#elif defined(sun) || defined(sgi)

FlightGear/src/Cockpit/hud.cxx_
#if defined ( __sun__ ) || defined ( __sgi )

FlightGear/src/Main/metar_main.cxx_
#if defined(__linux__) || defined( __sun__ ) || defined(__CYGWIN__) \

FlightGear/tests/test-mktime.cxx_
#  if defined( __linux__ ) || defined( __sun__ ) || defined( __CYGWIN__ )

TerraGear/src/BuildTiles/Parallel/server.cxx:
#if defined (sun) || defined (__CYGWIN__) || defined(sgi)


Would anyone object to a patch that unifies this to "(__sun)" ?

Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------

_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to