r197: *** empty log message ***
[ctsim.git] / libctsim / projections.cpp
index fb24e0d897bf065d9d348a5b09f827eacf1b8b8d..7fdda64bfd5603d5ebae628a50a484b92ea42278 100644 (file)
@@ -8,7 +8,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: projections.cpp,v 1.25 2000/09/02 05:10:39 kevin Exp $
+**  $Id: projections.cpp,v 1.26 2000/09/07 05:51:52 kevin Exp $
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -343,6 +343,7 @@ Projections::write (const char* filename)
     return false;
   }
 
+#ifdef HAVE_TIME
   time_t t = time(NULL);
   tm* lt = localtime(&t);
   m_year = lt->tm_year;
@@ -351,6 +352,7 @@ Projections::write (const char* filename)
   m_hour = lt->tm_hour;
   m_minute = lt->tm_min;
   m_second = lt->tm_sec;
+#endif
 
   if (! headerWrite (fs))
       return false;