Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : libs/embryo

Dir     : e17/libs/embryo/src/lib


Modified Files:
        Makefile.am embryo_time.c 


Log Message:
works on mingw now
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/lib/Makefile.am,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- Makefile.am 23 Jul 2004 04:38:27 -0000      1.6
+++ Makefile.am 12 Oct 2004 16:11:49 -0000      1.7
@@ -25,6 +25,6 @@
 embryo_time.c \
 embryo_private.h
 
-libembryo_la_LIBADD       = $(LDFLAGS) -lm
+libembryo_la_LIBADD       = $(LDFLAGS) -lm @fnmatch_libs@
 libembryo_la_DEPENDENCIES = $(top_builddir)/config.h
 libembryo_la_LDFLAGS      = -version-info 9:0:9
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/lib/embryo_time.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- embryo_time.c       29 Mar 2004 11:58:57 -0000      1.1
+++ embryo_time.c       12 Oct 2004 16:11:49 -0000      1.2
@@ -1,7 +1,33 @@
+/*
+ * vim:ts=8:sw=3:sts=3:noexpandtab
+ */
 #include "embryo_private.h"
 #include <sys/time.h>
 #include <time.h>
 
+#ifndef HAVE_GETTIMEOFDAY
+#ifdef WIN32
+#include <sys/timeb.h>
+
+static int gettimeofday (struct timeval *tv, void *unused)
+{
+   struct _timeb t;
+
+   if (!tv)
+      return -1;
+
+   _ftime (&t);
+
+   tv->tv_sec = t.time;
+   tv->tv_usec = t.millitm * 1000;
+
+   return 0;
+}
+#else
+#error "Your platform isn't supported yet"
+#endif
+#endif
+
 /* exported time api */
 
 static Embryo_Cell




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to