]> git.sesse.net Git - vlc/commitdiff
Remove useless check for time.h
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 10 Apr 2009 13:38:58 +0000 (16:38 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 10 Apr 2009 14:05:14 +0000 (17:05 +0300)
configure.ac
modules/demux/ts.c
modules/mux/mp4.c
modules/mux/ogg.c
src/input/vlm.c
src/input/vlmshell.c

index 1c03f55bf38748d808ff34260231debc8cf8e2df..592bc90ec35383fbc00c749b7a22ac3b42cd99b8 100644 (file)
@@ -829,7 +829,7 @@ AC_EGREP_HEADER(strncasecmp,strings.h,[
   AC_MSG_RESULT(no)])
 
 dnl Check for headers
-AC_CHECK_HEADERS(time.h getopt.h strings.h locale.h)
+AC_CHECK_HEADERS(getopt.h strings.h locale.h)
 AC_CHECK_HEADERS(fcntl.h sys/types.h sys/time.h sys/times.h sys/ioctl.h sys/stat.h xlocale.h)
 AC_CHECK_HEADERS([arpa/inet.h netinet/in.h netinet/udplite.h sys/eventfd.h])
 AC_CHECK_HEADERS([net/if.h], [], [],
index 4cf15a835f4908d879afb2aeeda5232a4e827522..5f4f8f7bf639155062619d0ceaa016c243f24bbb 100644 (file)
@@ -77,9 +77,7 @@
 #       include "tables/eit.h"
 #   endif
 #endif
-#ifdef HAVE_TIME_H
-#   include <time.h>
-#endif
+#include <time.h>
 #undef TS_DEBUG
 
 /*****************************************************************************
@@ -1142,7 +1140,6 @@ static int DVBEventInformation( demux_t *p_demux, int64_t *pi_time, int64_t *pi_
     if( pi_time )
         *pi_time = 0;
 
-#ifdef HAVE_TIME_H
     if( p_sys->b_access_control && p_sys->i_dvb_length > 0 )
     {
         /* FIXME we should not use time() but read the date from the tdt */
@@ -1156,7 +1153,6 @@ static int DVBEventInformation( demux_t *p_demux, int64_t *pi_time, int64_t *pi_
             return VLC_SUCCESS;
         }
     }
-#endif
     return VLC_EGENERIC;
 }
 
index d82da6e3790c791e1bd6f189b42bea8998fabcc7..92a251f3c746bec33490ec9134be2c6c86fd57c8 100644 (file)
@@ -35,9 +35,7 @@
 #include <vlc_sout.h>
 #include <vlc_block.h>
 
-#ifdef HAVE_TIME_H
 #include <time.h>
-#endif
 
 #include <vlc_iso_lang.h>
 #include "vlc_meta.h"
@@ -2158,13 +2156,10 @@ static void box_send( sout_mux_t *p_mux,  bo_t *box )
 
 static int64_t get_timestamp(void)
 {
-    int64_t i_timestamp = 0;
+    int64_t i_timestamp = time(NULL);
 
-#ifdef HAVE_TIME_H
-    i_timestamp = time(NULL);
     i_timestamp += 2082844800; // MOV/MP4 start date is 1/1/1904
     // 208284480 is (((1970 - 1904) * 365) + 17) * 24 * 60 * 60
-#endif
 
     return i_timestamp;
 }
index b767ed634e6fe9f2657bb896331bb2a81ba98523..fcdfb8a617ce421bc1393155ac3ce6a729bad170 100644 (file)
  * Preamble
  *****************************************************************************/
 
-#ifdef HAVE_TIME_H
-#   include <time.h>
-#endif
-
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
index f903d4cd68cf86d48e91cbb6f8fcd7f14807a251..a3baba0df7163adcad25a908716f477e47eaee22 100644 (file)
@@ -46,9 +46,9 @@
 #include <sys/time.h>                                      /* gettimeofday() */
 #endif
 
-#ifdef HAVE_TIME_H
-#   include <time.h>                                              /* ctime() */
-#   include <sys/timeb.h>                                         /* ftime() */
+#include <time.h>                                                 /* ctime() */
+#if defined (WIN32) && !defined (UNDER_CE)
+#include <sys/timeb.h>                                            /* ftime() */
 #endif
 
 #include <vlc_input.h>
index 4ae8ffbbebd0e0b88ddec28b731c5c24d7e333c3..ba62608c1c9b4891bf9a9b11bf7343152e7d2ea8 100644 (file)
 #   include <sys/time.h>                                   /* gettimeofday() */
 #endif
 
-#ifdef HAVE_TIME_H
-#   include <time.h>                                              /* ctime() */
-#   include <sys/timeb.h>                                         /* ftime() */
-#endif
+#include <time.h>                                                 /* ctime() */
 
 #include <vlc_input.h>
 #include "input_internal.h"