Update of /cvsroot/ufraw/ufraw
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv15192
Modified Files:
ufraw_writer.c
Log Message:
Add localtime_r() for _WIN32 (used by cfitsio write code).
Index: ufraw_writer.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_writer.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -d -r1.88 -r1.89
--- ufraw_writer.c 16 Mar 2013 13:00:17 -0000 1.88
+++ ufraw_writer.c 19 Mar 2013 18:00:13 -0000 1.89
@@ -202,6 +202,19 @@
}
#endif /*HAVE_LIBPNG*/
+#if defined(HAVE_LIBCFITSIO) && defined(_WIN32)
+/* localtime_r() is not included in the _WIN32 API. */
+static struct tm *localtime_r(const time_t *timep, struct tm *result) {
+ struct tm *p = localtime(timep);
+ memset(result, 0, sizeof(*result));
+ if (p) {
+ *result = *p;
+ p = result;
+ }
+ return p;
+}
+#endif /*HAVE_LIBCFITSIO && _WIN32*/
+
void ufraw_write_image_data(
ufraw_data *uf, void * volatile out,
const UFRectangle *Crop, int bitDepth, int grayscaleMode,
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
ufraw-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs