Changeset 77c667f4093a67cca8e77b4cb76a5fd2a674a5bf
- Timestamp:
- 11/11/02 00:41:54
(6 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 1036971714 +0000
- git-parent:
[be8ca6e9a9924ccdf8c72449b85bdb97e05e87a6]
- git-author:
- Sam Hocevar <sam@videolan.org> 1036971714 +0000
- Message:
- ALL: libvlc now compiles and run under WinCE. I haven't ported any modules
yet so there's little that can be tested, but threads work at least.
- ./src/extras/libc.c: renamed strndup.c to libc.c because a few other
libc functions were added (strcasecmp, atof, getenv...).
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rbe8ca6e |
r77c667f |
|
| 289 | 289 | |
|---|
| 290 | 290 | show-libvlc-sources: FORCE |
|---|
| 291 | | @echo X: $(SOURCES_libvlc_common) $(SOURCES_libvlc_win32) $(SOURCES_libvlc_dirent) $(SOURCES_libvlc_getopt) $(SOURCES_libvlc_strndup) |
|---|
| | 291 | @echo X: $(SOURCES_libvlc_common) $(SOURCES_libvlc_win32) $(SOURCES_libvlc_dirent) $(SOURCES_libvlc_getopt) $(SOURCES_libvlc_libc) |
|---|
| 292 | 292 | |
|---|
| 293 | 293 | show-libvlc-headers: FORCE |
|---|
| … | … | |
| 328 | 328 | OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt) |
|---|
| 329 | 329 | endif |
|---|
| 330 | | if BUILD_STRNDUP |
|---|
| 331 | | OPT_SOURCES_libvlc_strndup = $(SOURCES_libvlc_strndup) |
|---|
| | 330 | if BUILD_LIBC |
|---|
| | 331 | OPT_SOURCES_libvlc_libc = $(SOURCES_libvlc_libc) |
|---|
| 332 | 332 | endif |
|---|
| 333 | 333 | if BUILD_MOZILLA |
|---|
| … | … | |
| 341 | 341 | $(SOURCES_libvlc_dirent) \ |
|---|
| 342 | 342 | $(SOURCES_libvlc_getopt) \ |
|---|
| 343 | | $(SOURCES_libvlc_strndup) \ |
|---|
| | 343 | $(SOURCES_libvlc_libc) \ |
|---|
| 344 | 344 | $(NULL) |
|---|
| 345 | 345 | |
|---|
| … | … | |
| 367 | 367 | $(NULL) |
|---|
| 368 | 368 | |
|---|
| 369 | | SOURCES_libvlc_strndup = \ |
|---|
| 370 | | src/extras/strndup.c |
|---|
| | 369 | SOURCES_libvlc_libc = \ |
|---|
| | 370 | src/extras/libc.c |
|---|
| 371 | 371 | $(NULL) |
|---|
| 372 | 372 | |
|---|
| … | … | |
| 420 | 420 | $(OPT_SOURCES_libvlc_dirent) \ |
|---|
| 421 | 421 | $(OPT_SOURCES_libvlc_getopt) \ |
|---|
| 422 | | $(OPT_SOURCES_libvlc_strndup) \ |
|---|
| | 422 | $(OPT_SOURCES_libvlc_libc) \ |
|---|
| 423 | 423 | $(NULL) |
|---|
| 424 | 424 | |
|---|
| rbe8ca6e |
r77c667f |
|
| 215 | 215 | |
|---|
| 216 | 216 | dnl Check for system libs needed |
|---|
| 217 | | AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll) |
|---|
| 218 | | |
|---|
| 219 | | dnl Check for strndup |
|---|
| 220 | | need_strndup=false |
|---|
| 221 | | AC_CHECK_FUNCS(strndup,,[need_strndup=:]) |
|---|
| 222 | | AM_CONDITIONAL(BUILD_STRNDUP, ${need_strndup}) |
|---|
| | 217 | need_libc=false |
|---|
| | 218 | |
|---|
| | 219 | AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll getenv putenv setenv) |
|---|
| | 220 | |
|---|
| | 221 | dnl Check for usual libc functions |
|---|
| | 222 | AC_CHECK_FUNCS(strdup,,[need_libc=:]) |
|---|
| | 223 | AC_CHECK_FUNCS(strndup,,[need_libc=:]) |
|---|
| | 224 | AC_CHECK_FUNCS(atof,,[need_libc=:]) |
|---|
| | 225 | AC_CHECK_FUNCS(lseek,,[need_libc=:]) |
|---|
| | 226 | AC_CHECK_FUNCS(strcasecmp,,[AC_CHECK_FUNCS(stricmp,,[need_libc=:])]) |
|---|
| | 227 | AC_CHECK_FUNCS(strncasecmp,,[AC_CHECK_FUNCS(strnicmp,,[need_libc=:])]) |
|---|
| | 228 | |
|---|
| | 229 | AM_CONDITIONAL(BUILD_LIBC, ${need_libc}) |
|---|
| 223 | 230 | |
|---|
| 224 | 231 | AC_CHECK_FUNC(connect,,[ |
|---|
| rd532cf3 |
r77c667f |
|
| 4 | 4 | ***************************************************************************** |
|---|
| 5 | 5 | * Copyright (C) 1998, 1999, 2000 VideoLAN |
|---|
| 6 | | * $Id: vlc_common.h,v 1.35 2002/11/08 10:26:52 gbazin Exp $ |
|---|
| | 6 | * $Id: vlc_common.h,v 1.36 2002/11/10 23:41:53 sam Exp $ |
|---|
| 7 | 7 | * |
|---|
| 8 | 8 | * Authors: Samuel Hocevar <sam@via.ecp.fr> |
|---|
| … | … | |
| 468 | 468 | #endif |
|---|
| 469 | 469 | |
|---|
| 470 | | /* strndup (defined in src/misc/extras.c) */ |
|---|
| | 470 | /* strdup/strndup (defined in src/extras/libc.c) */ |
|---|
| | 471 | #ifndef HAVE_STRDUP |
|---|
| | 472 | char * strdup( const char *s ); |
|---|
| | 473 | #endif |
|---|
| 471 | 474 | #ifndef HAVE_STRNDUP |
|---|
| 472 | | char * strndup( const char *s, size_t n ); |
|---|
| | 475 | char * strndup( const char *s, size_t n ); |
|---|
| | 476 | #endif |
|---|
| | 477 | |
|---|
| | 478 | /* atof (defined in src/extras/libc.c) */ |
|---|
| | 479 | #ifndef HAVE_ATOF |
|---|
| | 480 | double atof( const char *nptr ); |
|---|
| | 481 | #endif |
|---|
| | 482 | |
|---|
| | 483 | /* getenv - always returns NULL */ |
|---|
| | 484 | #ifndef HAVE_GETENV |
|---|
| | 485 | char *getenv( const char *name ); |
|---|
| | 486 | #endif |
|---|
| | 487 | |
|---|
| | 488 | /* strncasecmp/strcasecmp (defined in src/extras/libc.c) */ |
|---|
| | 489 | #ifndef HAVE_STRCASECMP |
|---|
| | 490 | # ifdef HAVE_STRICMP |
|---|
| | 491 | # define strcasecmp stricmp |
|---|
| | 492 | # else |
|---|
| | 493 | int strcasecmp( const char *s1, const char *s2 ); |
|---|
| | 494 | # endif |
|---|
| | 495 | #endif |
|---|
| | 496 | |
|---|
| | 497 | #ifndef HAVE_STRNCASECMP |
|---|
| | 498 | # ifdef HAVE_STRNICMP |
|---|
| | 499 | # define strncasecmp strnicmp |
|---|
| | 500 | # else |
|---|
| | 501 | int strncasecmp( const char *s1, const char *s2, size_t n ); |
|---|
| | 502 | # endif |
|---|
| 473 | 503 | #endif |
|---|
| 474 | 504 | |
|---|
| … | … | |
| 502 | 532 | # define __attribute__(x) |
|---|
| 503 | 533 | # define __inline__ __inline |
|---|
| 504 | | # define strncasecmp strnicmp |
|---|
| 505 | | # define strcasecmp stricmp |
|---|
| 506 | 534 | # define S_IFBLK 0x3000 /* Block */ |
|---|
| 507 | 535 | # define S_ISBLK(m) (0) |
|---|
| … | … | |
| 548 | 576 | # endif |
|---|
| 549 | 577 | |
|---|
| | 578 | #endif |
|---|
| | 579 | |
|---|
| | 580 | /* lseek (defined in src/extras/libc.c) */ |
|---|
| | 581 | #ifndef HAVE_ATOF |
|---|
| | 582 | off_t lseek( int fildes, off_t offset, int whence ); |
|---|
| 550 | 583 | #endif |
|---|
| 551 | 584 | |
|---|
| rbe8ca6e |
r77c667f |
|
| 237 | 237 | # End Source File |
|---|
| 238 | 238 | # Begin Source File |
|---|
| 239 | | SOURCE="..\src\extras\strndup.c" |
|---|
| | 239 | SOURCE="..\src\extras\libc.c" |
|---|
| 240 | 240 | # ADD CPP /D "__VLC__" /D PLUGIN_PATH=\"plugins\" /D DATA_PATH=\"share\" |
|---|
| 241 | 241 | !IF "$(CFG)" == "vlc - Win32 Release" |
|---|
| … | … | |
| 441 | 441 | # End Source File |
|---|
| 442 | 442 | # Begin Source File |
|---|
| 443 | | SOURCE="..\src\misc\iso-639.def" |
|---|
| | 443 | SOURCE="..\src\misc\iso-639_def.h" |
|---|
| 444 | 444 | # ADD CPP /D "__VLC__" /D PLUGIN_PATH=\"plugins\" /D DATA_PATH=\"share\" |
|---|
| 445 | 445 | !IF "$(CFG)" == "vlc - Win32 Release" |
|---|
| rbe8ca6e |
r77c667f |
|
| 61 | 61 | CPP=clmips.exe |
|---|
| 62 | 62 | # ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Yu"stdafx.h" /Oxs /M$(CECrtMT) /c |
|---|
| 63 | | # ADD CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Yu"stdafx.h" /Oxs /M$(CECrtMT) /c |
|---|
| | 63 | # ADD CPP /nologo /W3 /I "." /I "..\include" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Oxs /M$(CECrtMT) /c |
|---|
| | 64 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 64 | 65 | MTL=midl.exe |
|---|
| 65 | 66 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 93 | 94 | CPP=clmips.exe |
|---|
| 94 | 95 | # ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Yu"stdafx.h" /M$(CECrtMTDebug) /c |
|---|
| 95 | | # ADD CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Yu"stdafx.h" /M$(CECrtMTDebug) /c |
|---|
| | 96 | # ADD CPP /nologo /W3 /Zi /Od /I "." /I "..\include" /D "DEBUG" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /M$(CECrtMTDebug) /c |
|---|
| | 97 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 96 | 98 | MTL=midl.exe |
|---|
| 97 | 99 | # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 125 | 127 | CPP=shcl.exe |
|---|
| 126 | 128 | # ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Yu"stdafx.h" /Qsh4 /Oxs /M$(CECrtMT) /c |
|---|
| 127 | | # ADD CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Yu"stdafx.h" /Qsh4 /Oxs /M$(CECrtMT) /c |
|---|
| | 129 | # ADD CPP /nologo /W3 /I "." /I "..\include" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Qsh4 /Oxs /M$(CECrtMT) /c |
|---|
| | 130 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 128 | 131 | MTL=midl.exe |
|---|
| 129 | 132 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 157 | 160 | CPP=shcl.exe |
|---|
| 158 | 161 | # ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Yu"stdafx.h" /Qsh4 /M$(CECrtMTDebug) /c |
|---|
| 159 | | # ADD CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Yu"stdafx.h" /Qsh4 /M$(CECrtMTDebug) /c |
|---|
| | 162 | # ADD CPP /nologo /W3 /Zi /Od /I "." /I "..\include" /D "DEBUG" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Qsh4 /M$(CECrtMTDebug) /c |
|---|
| | 163 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 160 | 164 | MTL=midl.exe |
|---|
| 161 | 165 | # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 189 | 193 | CPP=shcl.exe |
|---|
| 190 | 194 | # ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Yu"stdafx.h" /Oxs /M$(CECrtMT) /c |
|---|
| 191 | | # ADD CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Yu"stdafx.h" /Oxs /M$(CECrtMT) /c |
|---|
| | 195 | # ADD CPP /nologo /W3 /I "." /I "..\include" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Oxs /M$(CECrtMT) /c |
|---|
| | 196 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 192 | 197 | MTL=midl.exe |
|---|
| 193 | 198 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 221 | 226 | CPP=shcl.exe |
|---|
| 222 | 227 | # ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Yu"stdafx.h" /M$(CECrtMTDebug) /c |
|---|
| 223 | | # ADD CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Yu"stdafx.h" /M$(CECrtMTDebug) /c |
|---|
| | 228 | # ADD CPP /nologo /W3 /Zi /Od /I "." /I "..\include" /D "DEBUG" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /M$(CECrtMTDebug) /c |
|---|
| | 229 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 224 | 230 | MTL=midl.exe |
|---|
| 225 | 231 | # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 253 | 259 | CPP=clarm.exe |
|---|
| 254 | 260 | # ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Yu"stdafx.h" /Oxs /M$(CECrtMT) /c |
|---|
| 255 | | # ADD CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Yu"stdafx.h" /Oxs /M$(CECrtMT) /c |
|---|
| | 261 | # ADD CPP /nologo /W3 /I "." /I "..\include" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Oxs /M$(CECrtMT) /c |
|---|
| | 262 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 256 | 263 | MTL=midl.exe |
|---|
| 257 | 264 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 285 | 292 | CPP=clarm.exe |
|---|
| 286 | 293 | # ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Yu"stdafx.h" /M$(CECrtMTDebug) /c |
|---|
| 287 | | # ADD CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Yu"stdafx.h" /M$(CECrtMTDebug) /c |
|---|
| | 294 | # ADD CPP /nologo /W3 /Zi /Od /I "." /I "..\include" /D "DEBUG" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /M$(CECrtMTDebug) /c |
|---|
| | 295 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 288 | 296 | MTL=midl.exe |
|---|
| 289 | 297 | # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 317 | 325 | CPP=cl.exe |
|---|
| 318 | 326 | # ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "i486" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "NDEBUG" /Yu"stdafx.h" /Gz /Oxs /c |
|---|
| 319 | | # ADD CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "i486" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "NDEBUG" /Yu"stdafx.h" /Gz /Oxs /c |
|---|
| | 327 | # ADD CPP /nologo /W3 /I "." /I "..\include" /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "i486" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "NDEBUG" /Gz /Oxs /c |
|---|
| | 328 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 320 | 329 | MTL=midl.exe |
|---|
| 321 | 330 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 349 | 358 | CPP=cl.exe |
|---|
| 350 | 359 | # ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "i486" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /Yu"stdafx.h" /Gz /c |
|---|
| 351 | | # ADD CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "i486" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /Yu"stdafx.h" /Gz /c |
|---|
| | 360 | # ADD CPP /nologo /W3 /Zi /Od /I "." /I "..\include" /D "DEBUG" /D "i486" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /Gz /c |
|---|
| | 361 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 352 | 362 | MTL=midl.exe |
|---|
| 353 | 363 | # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 815 | 825 | # End Source File |
|---|
| 816 | 826 | # Begin Source File |
|---|
| 817 | | SOURCE="..\src\extras\strndup.c" |
|---|
| | 827 | SOURCE="..\src\extras\libc.c" |
|---|
| 818 | 828 | # ADD CPP /D "__VLC__" /D PLUGIN_PATH=\"plugins\" /D DATA_PATH=\"share\" |
|---|
| 819 | 829 | !IF "$(CFG)" == "vlc - Win32 (WCE MIPS) Release" |
|---|
| … | … | |
| 1451 | 1461 | # End Source File |
|---|
| 1452 | 1462 | # Begin Source File |
|---|
| 1453 | | SOURCE="..\src\misc\iso-639.def" |
|---|
| | 1463 | SOURCE="..\src\misc\iso-639_def.h" |
|---|
| 1454 | 1464 | # ADD CPP /D "__VLC__" /D PLUGIN_PATH=\"plugins\" /D DATA_PATH=\"share\" |
|---|
| 1455 | 1465 | !IF "$(CFG)" == "vlc - Win32 (WCE MIPS) Release" |
|---|
| rbe8ca6e |
r77c667f |
|
| 61 | 61 | CPP=clmips.exe |
|---|
| 62 | 62 | # ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Yu"stdafx.h" /Oxs /M$(CECrtMT) /c |
|---|
| 63 | | # ADD CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Yu"stdafx.h" /Oxs /M$(CECrtMT) /c |
|---|
| | 63 | # ADD CPP /nologo /W3 /I "." /I "..\include" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Oxs /M$(CECrtMT) /c |
|---|
| | 64 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 64 | 65 | MTL=midl.exe |
|---|
| 65 | 66 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 93 | 94 | CPP=clmips.exe |
|---|
| 94 | 95 | # ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Yu"stdafx.h" /M$(CECrtMTDebug) /c |
|---|
| 95 | | # ADD CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Yu"stdafx.h" /M$(CECrtMTDebug) /c |
|---|
| | 96 | # ADD CPP /nologo /W3 /Zi /Od /I "." /I "..\include" /D "DEBUG" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /M$(CECrtMTDebug) /c |
|---|
| | 97 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 96 | 98 | MTL=midl.exe |
|---|
| 97 | 99 | # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 125 | 127 | CPP=shcl.exe |
|---|
| 126 | 128 | # ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Yu"stdafx.h" /Qsh4 /Oxs /M$(CECrtMT) /c |
|---|
| 127 | | # ADD CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Yu"stdafx.h" /Qsh4 /Oxs /M$(CECrtMT) /c |
|---|
| | 129 | # ADD CPP /nologo /W3 /I "." /I "..\include" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Qsh4 /Oxs /M$(CECrtMT) /c |
|---|
| | 130 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 128 | 131 | MTL=midl.exe |
|---|
| 129 | 132 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 157 | 160 | CPP=shcl.exe |
|---|
| 158 | 161 | # ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Yu"stdafx.h" /Qsh4 /M$(CECrtMTDebug) /c |
|---|
| 159 | | # ADD CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Yu"stdafx.h" /Qsh4 /M$(CECrtMTDebug) /c |
|---|
| | 162 | # ADD CPP /nologo /W3 /Zi /Od /I "." /I "..\include" /D "DEBUG" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Qsh4 /M$(CECrtMTDebug) /c |
|---|
| | 163 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 160 | 164 | MTL=midl.exe |
|---|
| 161 | 165 | # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 189 | 193 | CPP=shcl.exe |
|---|
| 190 | 194 | # ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Yu"stdafx.h" /Oxs /M$(CECrtMT) /c |
|---|
| 191 | | # ADD CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Yu"stdafx.h" /Oxs /M$(CECrtMT) /c |
|---|
| | 195 | # ADD CPP /nologo /W3 /I "." /I "..\include" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Oxs /M$(CECrtMT) /c |
|---|
| | 196 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 192 | 197 | MTL=midl.exe |
|---|
| 193 | 198 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 221 | 226 | CPP=shcl.exe |
|---|
| 222 | 227 | # ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Yu"stdafx.h" /M$(CECrtMTDebug) /c |
|---|
| 223 | | # ADD CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Yu"stdafx.h" /M$(CECrtMTDebug) /c |
|---|
| | 228 | # ADD CPP /nologo /W3 /Zi /Od /I "." /I "..\include" /D "DEBUG" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /M$(CECrtMTDebug) /c |
|---|
| | 229 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 224 | 230 | MTL=midl.exe |
|---|
| 225 | 231 | # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 253 | 259 | CPP=clarm.exe |
|---|
| 254 | 260 | # ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Yu"stdafx.h" /Oxs /M$(CECrtMT) /c |
|---|
| 255 | | # ADD CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Yu"stdafx.h" /Oxs /M$(CECrtMT) /c |
|---|
| | 261 | # ADD CPP /nologo /W3 /I "." /I "..\include" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /Oxs /M$(CECrtMT) /c |
|---|
| | 262 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 256 | 263 | MTL=midl.exe |
|---|
| 257 | 264 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 285 | 292 | CPP=clarm.exe |
|---|
| 286 | 293 | # ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Yu"stdafx.h" /M$(CECrtMTDebug) /c |
|---|
| 287 | | # ADD CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /Yu"stdafx.h" /M$(CECrtMTDebug) /c |
|---|
| | 294 | # ADD CPP /nologo /W3 /Zi /Od /I "." /I "..\include" /D "DEBUG" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /M$(CECrtMTDebug) /c |
|---|
| | 295 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 288 | 296 | MTL=midl.exe |
|---|
| 289 | 297 | # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 317 | 325 | CPP=cl.exe |
|---|
| 318 | 326 | # ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "i486" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "NDEBUG" /Yu"stdafx.h" /Gz /Oxs /c |
|---|
| 319 | | # ADD CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "i486" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "NDEBUG" /Yu"stdafx.h" /Gz /Oxs /c |
|---|
| | 327 | # ADD CPP /nologo /W3 /I "." /I "..\include" /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "i486" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "NDEBUG" /Gz /Oxs /c |
|---|
| | 328 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 320 | 329 | MTL=midl.exe |
|---|
| 321 | 330 | # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| … | … | |
| 349 | 358 | CPP=cl.exe |
|---|
| 350 | 359 | # ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "i486" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /Yu"stdafx.h" /Gz /c |
|---|
| 351 | | # ADD CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "i486" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /Yu"stdafx.h" /Gz /c |
|---|
| | 360 | # ADD CPP /nologo /W3 /Zi /Od /I "." /I "..\include" /D "DEBUG" /D "i486" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /Gz /c |
|---|
| | 361 | # SUBTRACT CPP /YX /Yc /Yu |
|---|
| 352 | 362 | MTL=midl.exe |
|---|
| 353 | 363 | # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 |
|---|
| rbe8ca6e |
r77c667f |
|
| 10 | 10 | * Peters <colin@fu.is.saga-u.ac.jp> |
|---|
| 11 | 11 | * |
|---|
| 12 | | * $Revision: 1.3 $ |
|---|
| | 12 | * $Revision: 1.4 $ |
|---|
| 13 | 13 | * $Author: sam $ |
|---|
| 14 | | * $Date: 2002/11/10 18:04:23 $ |
|---|
| | 14 | * $Date: 2002/11/10 23:41:53 $ |
|---|
| 15 | 15 | * |
|---|
| 16 | 16 | */ |
|---|
| … | … | |
| 90 | 90 | if (szPath[0] == '\\' || szPath[0] == '/') |
|---|
| 91 | 91 | { |
|---|
| 92 | | snprintf (szFullPath, MAX_PATH, "%s", szPath); |
|---|
| | 92 | sprintf (szFullPath, MAX_PATH, "%s", szPath); |
|---|
| 93 | 93 | szFullPath[0] = '\\'; |
|---|
| 94 | 94 | } |
|---|
| 95 | 95 | else |
|---|
| 96 | 96 | { |
|---|
| 97 | | snprintf (szFullPath, MAX_PATH, "\\%s", szPath ); |
|---|
| | 97 | /* FIXME: if I wasn't lazy, I'dcheck for overflows here. */ |
|---|
| | 98 | sprintf (szFullPath, MAX_PATH, "\\%s", szPath ); |
|---|
| 98 | 99 | } |
|---|
| 99 | 100 | #else |
|---|
| rbe8ca6e |
r77c667f |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001, 2002 VideoLAN |
|---|
| 5 | | * $Id: input_ext-plugins.c,v 1.20 2002/11/10 18:04:23 sam Exp $ |
|---|
| | 5 | * $Id: input_ext-plugins.c,v 1.21 2002/11/10 23:41:53 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Christophe Massiot <massiot@via.ecp.fr> |
|---|
| … | … | |
| 670 | 670 | p_input->psz_access, p_input->psz_demux, p_input->psz_name ); |
|---|
| 671 | 671 | |
|---|
| | 672 | #ifdef UNDER_CE |
|---|
| | 673 | CloseHandle( (HANDLE)p_access_data->i_handle ); |
|---|
| | 674 | #else |
|---|
| 672 | 675 | close( p_access_data->i_handle ); |
|---|
| | 676 | #endif |
|---|
| | 677 | |
|---|
| 673 | 678 | free( p_access_data ); |
|---|
| 674 | 679 | } |
|---|
| … | … | |
| 685 | 690 | p_input->psz_access, p_input->psz_demux, p_input->psz_name ); |
|---|
| 686 | 691 | |
|---|
| 687 | | #if defined( WIN32 ) && !defined( UNDER_CE ) |
|---|
| | 692 | #ifdef UNDER_CE |
|---|
| | 693 | CloseHandle( (HANDLE)p_access_data->i_handle ); |
|---|
| | 694 | #elif defined( WIN32 ) |
|---|
| 688 | 695 | closesocket( p_access_data->i_handle ); |
|---|
| 689 | 696 | #else |
|---|
| … | … | |
| 700 | 707 | { |
|---|
| 701 | 708 | input_socket_t * p_access_data = (input_socket_t *)p_input->p_access_data; |
|---|
| | 709 | ssize_t i_ret; |
|---|
| 702 | 710 | |
|---|
| 703 | | ssize_t i_ret = read( p_access_data->i_handle, p_buffer, i_len ); |
|---|
| | 711 | #ifdef UNDER_CE |
|---|
| | 712 | if( !ReadFile( (HANDLE)p_access_data->i_handle, p_buffer, i_len, |
|---|
| | 713 | (LPWORD)&i_ret, NULL ) ) |
|---|
| | 714 | { |
|---|
| | 715 | i_ret = -1; |
|---|
| | 716 | } |
|---|
| | 717 | #else |
|---|
| | 718 | i_ret = read( p_access_data->i_handle, p_buffer, i_len ); |
|---|
| | 719 | #endif |
|---|
| 704 | 720 | |
|---|
| 705 | 721 | if( i_ret < 0 ) |
|---|
| 706 | 722 | { |
|---|
| 707 | | #ifdef HAVE_ERRNO_H |
|---|
| | 723 | # ifdef HAVE_ERRNO_H |
|---|
| 708 | 724 | msg_Err( p_input, "read failed (%s)", strerror(errno) ); |
|---|
| 709 | | #else |
|---|
| | 725 | # else |
|---|
| 710 | 726 | msg_Err( p_input, "read failed" ); |
|---|
| 711 | | #endif |
|---|
| | 727 | # endif |
|---|
| 712 | 728 | } |
|---|
| 713 | 729 | |
|---|
| rbe8ca6e |
r77c667f |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1998-2002 VideoLAN |
|---|
| 5 | | * $Id: libvlc.c,v 1.45 2002/11/10 18:04:23 sam Exp $ |
|---|
| | 5 | * $Id: libvlc.c,v 1.46 2002/11/10 23:41:53 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Vincent Seguin <seguin@via.ecp.fr> |
|---|
| … | … | |
| 1266 | 1266 | static void ShowConsole( void ) |
|---|
| 1267 | 1267 | { |
|---|
| | 1268 | # ifndef UNDER_CE |
|---|
| 1268 | 1269 | AllocConsole(); |
|---|
| 1269 | 1270 | freopen( "CONOUT$", "w", stdout ); |
|---|
| 1270 | 1271 | freopen( "CONOUT$", "w", stderr ); |
|---|
| 1271 | 1272 | freopen( "CONIN$", "r", stdin ); |
|---|
| | 1273 | # endif |
|---|
| 1272 | 1274 | return; |
|---|
| 1273 | 1275 | } |
|---|
| rbe8ca6e |
r77c667f |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001 VideoLAN |
|---|
| 5 | | * $Id: configuration.c,v 1.43 2002/11/10 18:04:23 sam Exp $ |
|---|
| | 5 | * $Id: configuration.c,v 1.44 2002/11/10 23:41:53 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 521 | 521 | /* The config file is organized in sections, one per module. Look for |
|---|
| 522 | 522 | * the interesting section ( a section is of the form [foo] ) */ |
|---|
| 523 | | rewind( file ); |
|---|
| | 523 | fseek( file, 0L, SEEK_SET ); |
|---|
| 524 | 524 | while( fgets( line, 1024, file ) ) |
|---|
| 525 | 525 | { |
|---|
| … | … | |
| 688 | 688 | sprintf( psz_filename, "%s/" CONFIG_DIR, psz_homedir ); |
|---|
| 689 | 689 | |
|---|
| 690 | | #ifdef HAVE_ERRNO_H |
|---|
| | 690 | #if defined( UNDER_CE ) |
|---|
| | 691 | { |
|---|
| | 692 | wchar_t psz_new[ MAX_PATH ]; |
|---|
| | 693 | MultiByteToWideChar( CP_ACP, 0, psz_filename, -1, psz_new, MAX_PATH ); |
|---|
| | 694 | if( CreateDirectory( psz_new, NULL ) ) |
|---|
| | 695 | { |
|---|
| | 696 | msg_Err( p_this, "could not create %s", psz_filename ); |
|---|
| | 697 | } |
|---|
| | 698 | } |
|---|
| | 699 | |
|---|
| | 700 | #elif defined( HAVE_ERRNO_H ) |
|---|
| 691 | 701 | # if defined( WIN32 ) |
|---|
| 692 | 702 | if( mkdir( psz_filename ) && errno != EEXIST ) |
|---|
| … | … | |
| 720 | 730 | { |
|---|
| 721 | 731 | /* look for file size */ |
|---|
| 722 | | fseek( file, 0, SEEK_END ); |
|---|
| | 732 | fseek( file, 0L, SEEK_END ); |
|---|
| 723 | 733 | i_sizebuf = ftell( file ); |
|---|
| 724 | | rewind( file ); |
|---|
| | 734 | fseek( file, 0L, SEEK_SET ); |
|---|
| 725 | 735 | } |
|---|
| 726 | 736 | |
|---|
| rbe8ca6e |
r77c667f |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1999, 2000, 2001, 2002 VideoLAN |
|---|
| 5 | | * $Id: threads.c,v 1.24 2002/11/10 18:04:24 sam Exp $ |
|---|
| | 5 | * $Id: threads.c,v 1.25 2002/11/10 23:41:53 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Jean-Marc Dressler <polux@via.ecp.fr> |
|---|
| … | … | |
| 78 | 78 | #if defined( PTH_INIT_IN_PTH_H ) |
|---|
| 79 | 79 | #elif defined( ST_INIT_IN_ST_H ) |
|---|
| | 80 | #elif defined( UNDER_CE ) |
|---|
| 80 | 81 | #elif defined( WIN32 ) |
|---|
| 81 | 82 | HINSTANCE hInstLib; |
|---|
| … | … | |
| 557 | 558 | /* When using the MSVCRT C library you have to use the _beginthreadex |
|---|
| 558 | 559 | * function instead of CreateThread, otherwise you'll end up with |
|---|
| 559 | | * memory leaks and the signal functions not working */ |
|---|
| | 560 | * memory leaks and the signal functions not working (see Microsoft |
|---|
| | 561 | * Knowledge Base, article 104641) */ |
|---|
| 560 | 562 | p_this->thread_id = |
|---|
| | 563 | #if defined( UNDER_CE ) |
|---|
| | 564 | (HANDLE)CreateThread( NULL, 0, (PTHREAD_START) func, |
|---|
| | 565 | (void *)p_this, 0, &threadID ); |
|---|
| | 566 | #else |
|---|
| 561 | 567 | (HANDLE)_beginthreadex( NULL, 0, (PTHREAD_START) func, |
|---|
| 562 | 568 | (void *)p_this, 0, &threadID ); |
|---|
| | 569 | #endif |
|---|
| 563 | 570 | } |
|---|
| 564 | 571 | |
|---|
| … | … | |
| 629 | 636 | else |
|---|
| 630 | 637 | { |
|---|
| | 638 | #ifdef HAVE_STRERROR |
|---|
| 631 | 639 | msg_Err( p_this, "%s thread could not be created at %s:%d (%s)", |
|---|
| 632 | 640 | psz_name, psz_file, i_line, strerror(i_ret) ); |
|---|
| | 641 | #else |
|---|
| | 642 | msg_Err( p_this, "%s thread could not be created at %s:%d", |
|---|
| | 643 | psz_name, psz_file, i_line ); |
|---|
| | 644 | #endif |
|---|
| 633 | 645 | vlc_mutex_unlock( &p_this->object_lock ); |
|---|
| 634 | 646 | } |
|---|
| … | … | |
| 678 | 690 | if( i_ret ) |
|---|
| 679 | 691 | { |
|---|
| | 692 | #ifdef HAVE_STRERROR |
|---|
| 680 | 693 | msg_Err( p_this, "thread_join(%d) failed at %s:%d (%s)", |
|---|
| 681 | 694 | p_this->thread_id, psz_file, i_line, strerror(i_ret) ); |
|---|
| | 695 | #else |
|---|
| | 696 | msg_Err( p_this, "thread_join(%d) failed at %s:%d", |
|---|
| | 697 | p_this->thread_id, psz_file, i_line ); |
|---|
| | 698 | #endif |
|---|
| 682 | 699 | } |
|---|
| 683 | 700 | else |
|---|
| rbe8ca6e |
r77c667f |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1999-2001 VideoLAN |
|---|
| 5 | | * $Id: video_text.c,v 1.38 2002/11/10 18:04:24 sam Exp $ |
|---|
| | 5 | * $Id: video_text.c,v 1.39 2002/11/10 23:41:54 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Vincent Seguin <seguin@via.ecp.fr> |
|---|
| … | … | |
| 278 | 278 | |
|---|
| 279 | 279 | /* Read magic number */ |
|---|
| | 280 | #ifndef UNDER_CE /* FIXME */ |
|---|
| 280 | 281 | if( read( i_file, pi_buffer, 2 ) != 2 ) |
|---|
| 281 | 282 | { |
|---|
| … | … | |
| 284 | 285 | return( NULL ); |
|---|
| 285 | 286 | } |
|---|
| | 287 | #endif |
|---|
| 286 | 288 | |
|---|
| 287 | 289 | /* Allocate font descriptor */ |
|---|
| … | … | |
| 290 | 292 | { |
|---|
| 291 | 293 | msg_Err( p_vout, "out of memory" ); |
|---|
| | 294 | #ifndef UNDER_CE /* FIXME */ |
|---|
| 292 | 295 | close( i_file ); |
|---|
| | 296 | #endif |
|---|
| 293 | 297 | return( NULL ); |
|---|
| 294 | 298 | } |
|---|
| … | … | |
| 304 | 308 | |
|---|
| 305 | 309 | /* Read font header - two bytes indicate the font properties */ |
|---|
| | 310 | #ifndef UNDER_CE /* FIXME */ |
|---|
| 306 | 311 | if( read( i_file, pi_buffer, 2 ) != 2) |
|---|
| 307 | 312 | { |
|---|
| … | … | |
| 311 | 316 | return( NULL ); |
|---|
| 312 | 317 | } |
|---|
| | 318 | #endif |
|---|
| 313 | 319 | |
|---|
| 314 | 320 | /* Copy font properties */ |
|---|
| … | … | |
| 328 | 334 | msg_Err( p_vout, "out of memory" ); |
|---|
| 329 | 335 | free( p_font ); |
|---|
| | 336 | #ifndef UNDER_CE /* FIXME */ |
|---|
| 330 | 337 | close( i_file ); |
|---|
| | 338 | #endif |
|---|
| 331 | 339 | return( NULL ); |
|---|
| 332 | 340 | } |
|---|
| 333 | 341 | |
|---|
| 334 | 342 | /* Copy raw data */ |
|---|
| | 343 | #ifndef UNDER_CE /* FIXME */ |
|---|
| 335 | 344 | if( read( i_file, p_font->p_data, 256 * pi_buffer[1] ) != 256 * pi_buffer[1] ) |
|---|
| 336 | 345 | { |
|---|
| … | … | |
| 341 | 350 | return( NULL ); |
|---|
| 342 | 351 | } |
|---|
| | 352 | #endif |
|---|
| 343 | 353 | |
|---|
| 344 | 354 | /* Compute border masks - remember that masks have the same matrix as |
|---|
| … | … | |
| 363 | 373 | msg_Err( p_vout, "file '%s' has an unknown format", psz_name ); |
|---|
| 364 | 374 | free( p_font ); |
|---|
| | 375 | #ifndef UNDER_CE /* FIXME */ |
|---|
| 365 | 376 | close( i_file ); |
|---|
| | 377 | #endif |
|---|
| 366 | 378 | return( NULL ); |
|---|
| 367 | 379 | break; |
|---|
| rbe8ca6e |
r77c667f |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1998-2001 VideoLAN |
|---|
| 5 | | * $Id: vlc.c,v 1.16 2002/11/10 18:04:23 sam Exp $ |
|---|
| | 5 | * $Id: vlc.c,v 1.17 2002/11/10 23:41:53 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Vincent Seguin <seguin@via.ecp.fr> |
|---|
| … | … | |
| 36 | 36 | #endif |
|---|
| 37 | 37 | |
|---|
| | 38 | #ifdef UNDER_CE |
|---|
| | 39 | /* WinCE needs a WINAPI declaration */ |
|---|
| | 40 | # define WIN32_LEAN_AND_MEAN |
|---|
| | 41 | # include <windows.h> |
|---|
| | 42 | #endif |
|---|
| | 43 | |
|---|
| 38 | 44 | #include <vlc/vlc.h> |
|---|
| 39 | 45 | |
|---|
| … | … | |
| 48 | 54 | * main: parse command line, start interface and spawn threads |
|---|
| 49 | 55 | *****************************************************************************/ |
|---|
| | 56 | #ifdef UNDER_CE |
|---|
| | 57 | int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, |
|---|
| | 58 | LPTSTR lpCmdLine, int nCmdShow ) |
|---|
| | 59 | #else |
|---|
| 50 | 60 | int main( int i_argc, char *ppsz_argv[] ) |
|---|
| | 61 | #endif |
|---|
| 51 | 62 | { |
|---|
| 52 | 63 | int i_ret; |
|---|
| | 64 | #ifdef UNDER_CE |
|---|
| | 65 | int i_argc = 1; |
|---|
| | 66 | char *ppsz_argv[] = { lpCmdLine, NULL }; |
|---|
| | 67 | #endif |
|---|
| 53 | 68 | |
|---|
| 54 | 69 | fprintf( stderr, "VideoLAN Client %s\n", VLC_Version() ); |
|---|