Changed __GLIBC__ ifdefs to __GNUC__ for compatibility with other glibc

systems (OS X).
ver1_5_1
Christophe Teyssier 2008-01-18 22:46:23 +00:00
parent 2d2db96378
commit b3c3fc48d6
1 changed files with 2 additions and 2 deletions

View File

@ -445,7 +445,7 @@ const char* astro::Date::toCStr(Format format) const
{
static char date[255];
#ifdef __GLIBC__
#ifdef __GNUC__
struct tm cal_time;
memset(&cal_time, 0, sizeof(cal_time));
cal_time.tm_year = year-1900;
@ -718,7 +718,7 @@ astro::TDBtoLocal(double tdb)
d.minute = localt->tm_min;
d.seconds = (int) localt->tm_sec;
d.wday = localt->tm_wday;
#ifdef __GLIBC__
#ifdef __GNUC__
d.utc_offset = localt->tm_gmtoff;
d.tzname = localt->tm_zone;
#else