00001 /* ctime.cc 00002 */ 00003 #include "osl/misc/ctime.h" 00004 00005 const char *osl::ctime_r(const time_t *timep, char *buf) 00006 { 00007 #ifdef _MSC_VER 00008 return "ctime not implemented"; 00009 #elif defined __MINGW32__ 00010 /* TODO 00011 * This ctime() implementation is not good but it would be OK if you do 00012 * not debug on MINGW. osl::ctime_r is used for debugging. 00013 */ 00014 return ::ctime(timep); 00015 #else 00016 return ::ctime_r(timep, buf); 00017 #endif 00018 } 00019 00020 // ;;; Local Variables: 00021 // ;;; mode:c++ 00022 // ;;; c-basic-offset:2 00023 // ;;; End: