Commit bf38b557 authored by Cyril Deguet's avatar Cyril Deguet

- added a few #ifdefs for Win32 port

parent 8b2ff867
......@@ -2,7 +2,7 @@
* file.cpp: File management
*-------------------------------------------------------------------------------
* (c)1999-2001 VideoLAN
* $Id: file.cpp,v 1.3 2002/03/25 01:57:43 asmax Exp $
* $Id: file.cpp,v 1.4 2002/04/10 10:47:18 asmax Exp $
*
* Authors: Benoit Steiner <benny@via.ecp.fr>
* Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -35,7 +35,9 @@
#include <stdio.h>
#include <string.h>
#ifdef HAVE_OPENDIR
#include <dirent.h>
#endif
#include <errno.h>
#include <sys/stat.h>
......
......@@ -2,7 +2,7 @@
* log.cpp: Logging method
*-------------------------------------------------------------------------------
* (c)1999-2001 VideoLAN
* $Id: log.cpp,v 1.3 2001/11/27 16:37:51 bozo Exp $
* $Id: log.cpp,v 1.4 2002/04/10 10:47:18 asmax Exp $
*
* Authors: Benoit Steiner <benny@via.ecp.fr>
*
......@@ -32,7 +32,9 @@
#include <stdlib.h>
#include <stdio.h>
#ifdef HAVE_OPENDIR
#include <dirent.h>
#endif
#include <stdarg.h>
#include <string.h>
#include <time.h>
......
......@@ -2,7 +2,7 @@
* parsers.cpp: Command line and configuration files parsers
*-------------------------------------------------------------------------------
* (c)1999-2001 VideoLAN
* $Id: parsers.cpp,v 1.3 2002/03/25 01:57:43 asmax Exp $
* $Id: parsers.cpp,v 1.4 2002/04/10 10:47:18 asmax Exp $
*
* Authors: Benoit Steiner <benny@via.ecp.fr>
* Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -33,7 +33,9 @@
#include "defs.h"
#include <stdio.h>
#ifdef HAVE_OPENDIR
#include <dirent.h>
#endif
#include <sys/types.h>
#include "common.h"
......
......@@ -2,7 +2,7 @@
* settings.cpp: Application settings management
*-------------------------------------------------------------------------------
* (c)1999-2001 VideoLAN
* $Id: settings.cpp,v 1.5 2002/03/24 15:56:08 asmax Exp $
* $Id: settings.cpp,v 1.6 2002/04/10 10:47:18 asmax Exp $
*
* Authors: Benoit Steiner <benny@via.ecp.fr>
*
......@@ -31,7 +31,9 @@
#include "defs.h"
#include <stdio.h>
#ifdef HAVE_OPENDIR
#include <dirent.h>
#endif
#include <sys/types.h>
#include "common.h"
......
......@@ -2,7 +2,7 @@
* localinput.cpp: Local streams
*-------------------------------------------------------------------------------
* (c)1999-2001 VideoLAN
* $Id: localinput.cpp,v 1.4 2002/03/21 14:09:19 bozo Exp $
* $Id: localinput.cpp,v 1.5 2002/04/10 10:47:18 asmax Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
*
......@@ -30,8 +30,12 @@
//------------------------------------------------------------------------------
#include "../../core/defs.h"
#ifdef HAVE_SYSTIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "../../core/core.h"
......
......@@ -2,7 +2,7 @@
* tsstreamer.cpp:
*-------------------------------------------------------------------------------
* (c)1999-2001 VideoLAN
* $Id: tsstreamer.cpp,v 1.4 2002/03/29 23:27:44 asmax Exp $
* $Id: tsstreamer.cpp,v 1.5 2002/04/10 10:47:18 asmax Exp $
*
* Authors: Benoit Steiner <benny@via.ecp.fr>
* Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -309,7 +309,11 @@ inline void C_TsStreamer::AdjustClock(C_TsPacket* pPacket)
{
// (Re)evaluate the slope
ASSERT(m_uiByteRead > 0);
#ifdef _WIN32
m_dSlope = ((double)iPCRTime - m_iLastTime) / (s64)m_uiByteRead;
#else
m_dSlope = ((double)iPCRTime - m_iLastTime) / m_uiByteRead;
#endif
}
// Update the data for the next PCR
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment