* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <vlc/vlc.h>
#include <assert.h>
MARGIN_LONGTEXT, VLC_FALSE);
vlc_module_end();
-static int Read (access_t *access, uint8_t *buffer, int len);
+static ssize_t Read (access_t *access, uint8_t *buffer, size_t len);
static block_t *Block (access_t *access);
static int Seek (access_t *access, int64_t offset);
static int Control (access_t *access, int cmd, va_list ap);
}
-static int Read (access_t *access, uint8_t *buffer, int len)
+static ssize_t Read (access_t *access, uint8_t *buffer, size_t len)
{
access_t *src = access->p_source;
return ret;
}
-
-#ifndef HAVE_LOCALTIME_R
-static inline struct tm *localtime_r (const time_t *now, struct tm *res)
-{
- struct tm *unsafe = localtime (now);
- /*
- * This is not thread-safe. Blame your C library.
- * On Win32 there SHOULD be _localtime_s instead, but of course
- * Cygwin and Mingw32 don't know about it. You're on your own if you
- * use this platform.
- */
- if (unsafe == NULL)
- return NULL;
-
- memcpy (res, unsafe, sizeof (*res));
- return res;
-}
-#endif
-
-
static void Trigger (access_t *access)
{
access_sys_t *p_sys = access->p_sys;