Commit 6a2acb97 authored by Gildas Bazin's avatar Gildas Bazin

* modules/access/mms, modules/demux/mp4, modules/misc/logger.c: WinCE compilation fixes.

parent 2fab80da
...@@ -27,21 +27,25 @@ ...@@ -27,21 +27,25 @@
*****************************************************************************/ *****************************************************************************/
#include <stdlib.h> #include <stdlib.h>
#include <vlc/vlc.h> #include <vlc/vlc.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h> #include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <vlc/input.h> #include <vlc/input.h>
#include <errno.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef WIN32 #ifdef WIN32
# include <winsock2.h> # include <winsock2.h>
......
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
#include "drms.h" #include "drms.h"
#include "drmstables.h" #include "drmstables.h"
#if !defined( UNDER_CE )
/***************************************************************************** /*****************************************************************************
* aes_s: AES keys structure * aes_s: AES keys structure
***************************************************************************** *****************************************************************************
...@@ -2052,3 +2053,11 @@ static int GetiPodID( int64_t *p_ipod_id ) ...@@ -2052,3 +2053,11 @@ static int GetiPodID( int64_t *p_ipod_id )
return i_ret; return i_ret;
} }
#else /* !defined( UNDER_CE ) */
void *drms_alloc( char *psz_homedir ){ return 0; }
void drms_free( void *a ){}
void drms_decrypt( void *a, uint32_t *b, uint32_t c ){}
int drms_init( void *a, uint32_t b, uint8_t *c, uint32_t d ){ return -1; }
#endif /* defined( UNDER_CE ) */
...@@ -34,6 +34,10 @@ ...@@ -34,6 +34,10 @@
#include "libmp4.h" #include "libmp4.h"
#include "drms.h" #include "drms.h"
#ifdef UNDER_CE
#define uint64_t int64_t
#endif
/***************************************************************************** /*****************************************************************************
* Module descriptor * Module descriptor
*****************************************************************************/ *****************************************************************************/
......
...@@ -30,6 +30,10 @@ ...@@ -30,6 +30,10 @@
#include <errno.h> /* ENOMEM */ #include <errno.h> /* ENOMEM */
#include <stdio.h> #include <stdio.h>
#ifdef UNDER_CE
# define _IONBF 0x0004
#endif
#include <vlc/vlc.h> #include <vlc/vlc.h>
#include <vlc/intf.h> #include <vlc/intf.h>
......
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