From 0035ef9194251f89f8a64357d0cfbf2c723fd24c Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 6 Oct 2005 11:06:27 +0000 Subject: [PATCH] Martin Spott: Use standardized Sun directive. --- simgear/compiler.h | 2 +- simgear/timing/sg_time.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/compiler.h b/simgear/compiler.h index b168252d..ed3f9f1b 100644 --- a/simgear/compiler.h +++ b/simgear/compiler.h @@ -324,7 +324,7 @@ #endif // Native SGI compilers -#if defined ( sun ) +#if defined (__sun) # include # include # if defined ( __cplusplus ) diff --git a/simgear/timing/sg_time.cxx b/simgear/timing/sg_time.cxx index 64472507..efa59c7d 100644 --- a/simgear/timing/sg_time.cxx +++ b/simgear/timing/sg_time.cxx @@ -530,7 +530,7 @@ time_t sgTimeGetGMT(int year, int month, int day, int hour, int min, int sec) #else // ! defined ( MK_TIME_IS_GMT ) // timezone seems to work as a proper offset for Linux & Solaris -# if defined( __linux__ ) || defined( __sun__ ) ||defined(__CYGWIN__) +# if defined( __linux__ ) || defined(__sun) ||defined(__CYGWIN__) # define TIMEZONE_OFFSET_WORKS 1 # endif -- 2.39.5