Changeset e86ceeef98feb5eb5dbf2f8e7d3551f6276713ed
- Timestamp:
- 15/02/05 22:21:17
(4 years ago)
- Author:
- Gildas Bazin <gbazin@videolan.org>
- git-committer:
- Gildas Bazin <gbazin@videolan.org> 1108502477 +0000
- git-parent:
[47b183e33e4eceaae58ef665110da9ec15d3ed32]
- git-author:
- Gildas Bazin <gbazin@videolan.org> 1108502477 +0000
- Message:
* ALL: WinCE build fixes.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r16b99ba |
re86ceee |
|
| 91 | 91 | /* Fast memcpy plugin used */ |
|---|
| 92 | 92 | module_t * p_memcpy_module; |
|---|
| 93 | | #if defined( UNDER_CE ) |
|---|
| 94 | | void* ( __cdecl *pf_memcpy ) ( void *, const void *, size_t ); |
|---|
| 95 | | void* ( __cdecl *pf_memset ) ( void *, int, size_t ); |
|---|
| 96 | | #else |
|---|
| 97 | 93 | void* ( *pf_memcpy ) ( void *, const void *, size_t ); |
|---|
| 98 | 94 | void* ( *pf_memset ) ( void *, int, size_t ); |
|---|
| 99 | | #endif |
|---|
| 100 | 95 | |
|---|
| 101 | 96 | /* Shared data - these structures are accessed directly from p_vlc by |
|---|
| r4598fd2 |
re86ceee |
|
| 4 | 4 | ***************************************************************************** |
|---|
| 5 | 5 | * Copyright (C) 1999, 2002 VideoLAN |
|---|
| 6 | | * $Id: vlc_threads.h,v 1.37 2004/03/01 12:50:39 gbazin Exp $ |
|---|
| | 6 | * $Id$ |
|---|
| 7 | 7 | * |
|---|
| 8 | 8 | * Authors: Jean-Marc Dressler <polux@via.ecp.fr> |
|---|
| … | … | |
| 147 | 147 | typedef HANDLE vlc_thread_t; |
|---|
| 148 | 148 | typedef BOOL (WINAPI *SIGNALOBJECTANDWAIT) ( HANDLE, HANDLE, DWORD, BOOL ); |
|---|
| 149 | | typedef unsigned (__stdcall *PTHREAD_START) (void *); |
|---|
| | 149 | typedef unsigned (WINAPI *PTHREAD_START) (void *); |
|---|
| 150 | 150 | |
|---|
| 151 | 151 | typedef struct |
|---|
| r0dd3733 |
re86ceee |
|
| 48 | 48 | #endif |
|---|
| 49 | 49 | |
|---|
| 50 | | #ifdef WIN32 |
|---|
| | 50 | #if defined( UNDER_CE ) |
|---|
| | 51 | # include <winsock.h> |
|---|
| | 52 | #elif WIN32 |
|---|
| 51 | 53 | # include <winsock2.h> |
|---|
| 52 | 54 | # include <ws2tcpip.h> |
|---|
| rd8da383 |
re86ceee |
|
| 39 | 39 | |
|---|
| 40 | 40 | return system( psz_open_commandline ); |
|---|
| | 41 | |
|---|
| | 42 | #elif defined( UNDER_CE ) |
|---|
| | 43 | return -1; |
|---|
| | 44 | |
|---|
| 41 | 45 | #elif defined( WIN32 ) |
|---|
| 42 | 46 | char *psz_open_commandline; |
|---|
| … | … | |
| 46 | 50 | |
|---|
| 47 | 51 | return system( psz_open_commandline ); |
|---|
| | 52 | |
|---|
| 48 | 53 | #else |
|---|
| 49 | 54 | /* Assume we're on a UNIX of some sort */ |
|---|
| … | … | |
| 56 | 61 | i_ret = system( psz_open_commandline ); |
|---|
| 57 | 62 | |
|---|
| 58 | | if( i_ret == 0 ) |
|---|
| 59 | | { |
|---|
| 60 | | return 0; |
|---|
| 61 | | } |
|---|
| | 63 | if( i_ret == 0 ) return 0; |
|---|
| 62 | 64 | |
|---|
| 63 | 65 | free( psz_open_commandline ); |
|---|
| rc959f01 |
re86ceee |
|
| 32 | 32 | #include <vlc/vout.h> |
|---|
| 33 | 33 | |
|---|
| 34 | | #include <windows.h> |
|---|
| 35 | | #define WIN32_LEAN_AND_MEAN |
|---|
| | 34 | #include <commctrl.h> |
|---|
| 36 | 35 | |
|---|
| 37 | 36 | #ifdef UNDER_CE |
|---|
| 38 | | # include <aygshell.h> |
|---|
| | 37 | # define SHFS_HIDESIPBUTTON 0x0008 |
|---|
| 39 | 38 | # define MENU_HEIGHT 26 |
|---|
| 40 | 39 | #else |
|---|
| 41 | 40 | # define SHFS_HIDESIPBUTTON 0 |
|---|
| 42 | 41 | # define MENU_HEIGHT 0 |
|---|
| 43 | | # define NM_CUSTOMDRAW 0 |
|---|
| 44 | 42 | #endif |
|---|
| 45 | 43 | |
|---|
| r8a53024 |
re86ceee |
|
| 300 | 300 | j++) |
|---|
| 301 | 301 | { |
|---|
| | 302 | #ifdef HAVE_DIRENT_H |
|---|
| 302 | 303 | d = opendir( j < 0 ? f_dir : *subdirs ); |
|---|
| 303 | 304 | if( d ) |
|---|
| … | … | |
| 378 | 379 | closedir( d ); |
|---|
| 379 | 380 | } |
|---|
| | 381 | #endif |
|---|
| 380 | 382 | if( j >= 0 ) free( *subdirs++ ); |
|---|
| 381 | 383 | } |
|---|
| r31ca77e |
re86ceee |
|
| 1617 | 1617 | #elif defined(UNDER_CE) |
|---|
| 1618 | 1618 | |
|---|
| | 1619 | #ifndef CSIDL_APPDATA |
|---|
| | 1620 | # define CSIDL_APPDATA 0x1A |
|---|
| | 1621 | #endif |
|---|
| | 1622 | |
|---|
| 1619 | 1623 | wchar_t p_whomedir[MAX_PATH]; |
|---|
| 1620 | 1624 | |
|---|
| r0a5efa3 |
re86ceee |
|
| 116 | 116 | #endif |
|---|
| 117 | 117 | |
|---|
| 118 | | #if defined( UNDER_CE ) |
|---|
| | 118 | #if defined( _MSC_VER ) && defined( UNDER_CE ) |
|---|
| 119 | 119 | # include "modules_builtin_evc.h" |
|---|
| 120 | 120 | #elif defined( _MSC_VER ) |
|---|
| rc2779ed |
re86ceee |
|
| 38 | 38 | #endif |
|---|
| 39 | 39 | |
|---|
| 40 | | #include <winsock2.h> |
|---|
| | 40 | #include <winsock.h> |
|---|
| 41 | 41 | |
|---|
| 42 | 42 | /***************************************************************************** |
|---|
| … | … | |
| 78 | 78 | #if !defined( UNDER_CE ) |
|---|
| 79 | 79 | _fmode = _O_BINARY; |
|---|
| 80 | | #endif |
|---|
| 81 | 80 | _setmode( _fileno( stdin ), _O_BINARY ); /* Needed for pipes */ |
|---|
| | 81 | #endif |
|---|
| 82 | 82 | |
|---|
| 83 | 83 | /* Call mdate() once to make sure it is initialized properly */ |
|---|