Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
c0332448
Commit
c0332448
authored
Jan 08, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: keep defines together
parent
1f0b50f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
15 deletions
+13
-15
include/vlc_common.h
include/vlc_common.h
+13
-15
No files found.
include/vlc_common.h
View file @
c0332448
...
@@ -52,6 +52,9 @@
...
@@ -52,6 +52,9 @@
# include <stdbool.h>
# include <stdbool.h>
#endif
#endif
/*****************************************************************************
* Compilers definitions
*****************************************************************************/
/* Helper for GCC version checks */
/* Helper for GCC version checks */
#ifdef __GNUC__
#ifdef __GNUC__
# define VLC_GCC_VERSION(maj,min) \
# define VLC_GCC_VERSION(maj,min) \
...
@@ -136,17 +139,6 @@
...
@@ -136,17 +139,6 @@
/*****************************************************************************
/*****************************************************************************
* Basic types definitions
* Basic types definitions
*****************************************************************************/
*****************************************************************************/
#if defined( WIN32 )
# include <malloc.h>
# ifndef PATH_MAX
# define PATH_MAX MAX_PATH
# endif
#endif
#ifdef __SYMBIAN32__
#include <sys/syslimits.h>
#endif
/**
/**
* High precision date or time interval
* High precision date or time interval
*
*
...
@@ -416,7 +408,15 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
...
@@ -416,7 +408,15 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
* OS-specific headers and thread types
* OS-specific headers and thread types
*****************************************************************************/
*****************************************************************************/
#if defined( WIN32 )
#if defined( WIN32 )
# include <windows.h>
# include <malloc.h>
# ifndef PATH_MAX
# define PATH_MAX MAX_PATH
# endif
# include <windows.h>
#endif
#ifdef __SYMBIAN32__
#include <sys/syslimits.h>
#endif
#endif
#ifdef __OS2__
#ifdef __OS2__
...
@@ -772,7 +772,6 @@ static inline void SetQWLE (void *p, uint64_t qw)
...
@@ -772,7 +772,6 @@ static inline void SetQWLE (void *p, uint64_t qw)
/* Stuff defined in src/extras/libc.c */
/* Stuff defined in src/extras/libc.c */
#if defined(WIN32)
#if defined(WIN32)
/* several type definitions */
/* several type definitions */
# if defined( __MINGW32__ )
# if defined( __MINGW32__ )
# if !defined( _OFF_T_ )
# if !defined( _OFF_T_ )
...
@@ -792,7 +791,7 @@ static inline void SetQWLE (void *p, uint64_t qw)
...
@@ -792,7 +791,7 @@ static inline void SetQWLE (void *p, uint64_t qw)
# endif
# endif
# include <tchar.h>
# include <tchar.h>
#endif
#endif
/* WIN32 */
VLC_API
bool
vlc_ureduce
(
unsigned
*
,
unsigned
*
,
uint64_t
,
uint64_t
,
uint64_t
);
VLC_API
bool
vlc_ureduce
(
unsigned
*
,
unsigned
*
,
uint64_t
,
uint64_t
,
uint64_t
);
...
@@ -802,7 +801,6 @@ VLC_API bool vlc_ureduce( unsigned *, unsigned *, uint64_t, uint64_t, uint64_t )
...
@@ -802,7 +801,6 @@ VLC_API bool vlc_ureduce( unsigned *, unsigned *, uint64_t, uint64_t, uint64_t )
#endif
#endif
#ifdef WIN32
#ifdef WIN32
# include <malloc.h>
# define vlc_memalign(align, size) (__mingw_aligned_malloc(size, align))
# define vlc_memalign(align, size) (__mingw_aligned_malloc(size, align))
# define vlc_free(base) (__mingw_aligned_free(base))
# define vlc_free(base) (__mingw_aligned_free(base))
#elif defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6)
#elif defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6)
...
...
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