Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
a490cbb6
Commit
a490cbb6
authored
Sep 29, 2008
by
Geoffroy Couprie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove IS_WINNT macro
parent
e53c94ea
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
61 deletions
+44
-61
include/vlc_common.h
include/vlc_common.h
+0
-5
include/vlc_threads.h
include/vlc_threads.h
+5
-6
modules/access/screen/win32.c
modules/access/screen/win32.c
+1
-1
modules/control/ntservice.c
modules/control/ntservice.c
+0
-3
src/text/unicode.c
src/text/unicode.c
+38
-46
No files found.
include/vlc_common.h
View file @
a490cbb6
...
@@ -498,11 +498,6 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
...
@@ -498,11 +498,6 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
#if defined( WIN32 ) || defined( UNDER_CE )
#if defined( WIN32 ) || defined( UNDER_CE )
# define WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
# include <windows.h>
# if defined( UNDER_CE )
# define IS_WINNT 0
# else
# define IS_WINNT ( GetVersion() < 0x80000000 )
# endif
#endif
#endif
#include "vlc_mtime.h"
#include "vlc_mtime.h"
...
...
include/vlc_threads.h
View file @
a490cbb6
...
@@ -79,15 +79,14 @@
...
@@ -79,15 +79,14 @@
/* Define different priorities for WinNT/2K/XP and Win9x/Me */
/* Define different priorities for WinNT/2K/XP and Win9x/Me */
# define VLC_THREAD_PRIORITY_LOW 0
# define VLC_THREAD_PRIORITY_LOW 0
# define VLC_THREAD_PRIORITY_INPUT \
# define VLC_THREAD_PRIORITY_INPUT \
(IS_WINNT ? THREAD_PRIORITY_ABOVE_NORMAL : 0)
THREAD_PRIORITY_ABOVE_NORMAL
# define VLC_THREAD_PRIORITY_AUDIO \
# define VLC_THREAD_PRIORITY_AUDIO \
(IS_WINNT ? THREAD_PRIORITY_HIGHEST : 0)
THREAD_PRIORITY_HIGHEST
# define VLC_THREAD_PRIORITY_VIDEO \
# define VLC_THREAD_PRIORITY_VIDEO 0
(IS_WINNT ? 0 : THREAD_PRIORITY_BELOW_NORMAL )
# define VLC_THREAD_PRIORITY_OUTPUT \
# define VLC_THREAD_PRIORITY_OUTPUT \
(IS_WINNT ? THREAD_PRIORITY_ABOVE_NORMAL : 0)
THREAD_PRIORITY_ABOVE_NORMAL
# define VLC_THREAD_PRIORITY_HIGHEST \
# define VLC_THREAD_PRIORITY_HIGHEST \
(IS_WINNT ? THREAD_PRIORITY_TIME_CRITICAL : 0)
THREAD_PRIORITY_TIME_CRITICAL
#else
#else
# define VLC_THREAD_PRIORITY_LOW 0
# define VLC_THREAD_PRIORITY_LOW 0
...
...
modules/access/screen/win32.c
View file @
a490cbb6
...
@@ -264,7 +264,7 @@ block_t *screen_Capture( demux_t *p_demux )
...
@@ -264,7 +264,7 @@ block_t *screen_Capture( demux_t *p_demux )
p_sys
->
fmt
.
video
.
i_width
,
p_data
->
i_fragment_size
,
p_sys
->
fmt
.
video
.
i_width
,
p_data
->
i_fragment_size
,
p_data
->
hdc_src
,
p_sys
->
i_left
,
p_sys
->
i_top
+
p_data
->
hdc_src
,
p_sys
->
i_left
,
p_sys
->
i_top
+
p_data
->
i_fragment
*
p_data
->
i_fragment_size
,
p_data
->
i_fragment
*
p_data
->
i_fragment_size
,
IS_WINNT
?
SRCCOPY
|
CAPTUREBLT
:
SRCCOPY
)
)
SRCCOPY
|
CAPTUREBLT
)
)
{
{
msg_Err
(
p_demux
,
"error during BitBlt()"
);
msg_Err
(
p_demux
,
"error during BitBlt()"
);
return
NULL
;
return
NULL
;
...
...
modules/control/ntservice.c
View file @
a490cbb6
...
@@ -107,9 +107,6 @@ static int Activate( vlc_object_t *p_this )
...
@@ -107,9 +107,6 @@ static int Activate( vlc_object_t *p_this )
{
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
/* Only works on NT/2K/XP */
if
(
!
IS_WINNT
)
return
VLC_EGENERIC
;
p_intf
->
pf_run
=
Run
;
p_intf
->
pf_run
=
Run
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
src/text/unicode.c
View file @
a490cbb6
...
@@ -262,9 +262,7 @@ char *ToLocaleDup (const char *utf8)
...
@@ -262,9 +262,7 @@ char *ToLocaleDup (const char *utf8)
*/
*/
int
utf8_open
(
const
char
*
filename
,
int
flags
,
mode_t
mode
)
int
utf8_open
(
const
char
*
filename
,
int
flags
,
mode_t
mode
)
{
{
#if defined (WIN32) || defined (UNDER_CE)
#ifdef WIN32
if
(
GetVersion
()
<
0x80000000
)
{
/* for Windows NT and above */
/* for Windows NT and above */
wchar_t
wpath
[
MAX_PATH
+
1
];
wchar_t
wpath
[
MAX_PATH
+
1
];
...
@@ -280,7 +278,7 @@ int utf8_open (const char *filename, int flags, mode_t mode)
...
@@ -280,7 +278,7 @@ int utf8_open (const char *filename, int flags, mode_t mode)
* We use _wopen() instead. Same thing for mkdir() and stat().
* We use _wopen() instead. Same thing for mkdir() and stat().
*/
*/
return
_wopen
(
wpath
,
flags
,
mode
);
return
_wopen
(
wpath
,
flags
,
mode
);
}
#endif
#endif
const
char
*
local_name
=
ToLocale
(
filename
);
const
char
*
local_name
=
ToLocale
(
filename
);
...
@@ -573,10 +571,7 @@ int utf8_scandir( const char *dirname, char ***namelist,
...
@@ -573,10 +571,7 @@ int utf8_scandir( const char *dirname, char ***namelist,
static
int
utf8_statEx
(
const
char
*
filename
,
struct
stat
*
buf
,
static
int
utf8_statEx
(
const
char
*
filename
,
struct
stat
*
buf
,
bool
deref
)
bool
deref
)
{
{
#if defined (WIN32) || defined (UNDER_CE)
#if defined (WIN32)
/* retrieve Windows OS version */
if
(
GetVersion
()
<
0x80000000
)
{
/* for Windows NT and above */
/* for Windows NT and above */
wchar_t
wpath
[
MAX_PATH
+
1
];
wchar_t
wpath
[
MAX_PATH
+
1
];
...
@@ -588,7 +583,7 @@ static int utf8_statEx( const char *filename, struct stat *buf,
...
@@ -588,7 +583,7 @@ static int utf8_statEx( const char *filename, struct stat *buf,
wpath
[
MAX_PATH
]
=
L'\0'
;
wpath
[
MAX_PATH
]
=
L'\0'
;
return
_wstati64
(
wpath
,
buf
);
return
_wstati64
(
wpath
,
buf
);
}
#endif
#endif
#ifdef HAVE_SYS_STAT_H
#ifdef HAVE_SYS_STAT_H
const
char
*
local_name
=
ToLocale
(
filename
);
const
char
*
local_name
=
ToLocale
(
filename
);
...
@@ -636,9 +631,7 @@ int utf8_lstat( const char *filename, struct stat *buf)
...
@@ -636,9 +631,7 @@ int utf8_lstat( const char *filename, struct stat *buf)
*/
*/
int
utf8_unlink
(
const
char
*
filename
)
int
utf8_unlink
(
const
char
*
filename
)
{
{
#if defined (WIN32) || defined (UNDER_CE)
#if defined (WIN32)
if
(
GetVersion
()
<
0x80000000
)
{
/* for Windows NT and above */
/* for Windows NT and above */
wchar_t
wpath
[
MAX_PATH
+
1
];
wchar_t
wpath
[
MAX_PATH
+
1
];
...
@@ -654,7 +647,6 @@ int utf8_unlink( const char *filename )
...
@@ -654,7 +647,6 @@ int utf8_unlink( const char *filename )
* We use _wunlink() instead.
* We use _wunlink() instead.
*/
*/
return
_wunlink
(
wpath
);
return
_wunlink
(
wpath
);
}
#endif
#endif
const
char
*
local_name
=
ToLocale
(
filename
);
const
char
*
local_name
=
ToLocale
(
filename
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment