Changeset 15163


Ignore:
Timestamp:
03/26/13 17:42:49 (12 years ago)
Author:
tbretz
Message:
Added some ifdef to make the datalogger also compile without libnova.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/datalogger.cc

    r15153 r15163  
    8686#include "DimState.h"
    8787
     88#ifdef HAVE_LIBNOVA
    8889#include <libnova/solar.h>
    8990#include <libnova/rise_set.h>
     91#endif
    9092
    9193//Dim structures
     
    12711273Time DataLogger::GetSunRise(const Time &time)
    12721274{
     1275#ifdef HAVE_LIBNOVA
    12731276    const double lon = -(17.+53./60+26.525/3600);
    12741277    const double lat =   28.+45./60+42.462/3600;
     
    12961299
    12971300    return Time(sun_day.rise);
     1301#else
     1302    return time;
     1303#endif
    12981304}
    12991305
Note: See TracChangeset for help on using the changeset viewer.