Changeset 4204


Ignore:
Timestamp:
05/10/11 12:22:18 (10 years ago)
Author:
scott
Message:

Proposed fix for Solaris build of ew_spectra_io

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libsrc/util/ew_spectra_io.c

    r4194 r4204  
    1919#include <math.h> 
    2020#include <string.h> 
     21#include <time_ew.h> 
    2122#include "ew_spectra_io.h" 
     23#include <ctype.h> 
     24#include <earthworm_simple_funcs.h> 
    2225 
    2326/*********************************************************************** 
     
    4750        strDate[ 4] = '\0'; 
    4851        tmDate.tm_year  = atoi( strDate ) - 1900; 
    49     tmDate.tm_wday = tmDate.tm_yday = tmDate.tm_isdst = tmDate.tm_gmtoff = 0; 
     52    tmDate.tm_wday = tmDate.tm_yday = tmDate.tm_isdst = 0; 
     53#if defined (_SOLARIS) 
     54#else 
     55        tmDate.tm_gmtoff = 0; 
    5056    tmDate.tm_zone = "GMT"; 
    51  
    52     *start = (double)timegm( &tmDate ); 
     57#endif 
     58    *start = (double)timegm_ew( &tmDate ); 
    5359     
    5460    return EW_SUCCESS; 
     
    7076     
    7177    start_time = (int)start; 
    72     gmtime_r( &start_time, &tmDate ); 
     78    gmtime_ew( &start_time, &tmDate ); 
    7379    sprintf( pStart, "%04d%02d%02d%02d%02d%02d",  
    7480        tmDate.tm_year+1900, tmDate.tm_mon+1, tmDate.tm_mday, 
Note: See TracChangeset for help on using the changeset viewer.