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
25930fef
Commit
25930fef
authored
Jun 15, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
define __STDC_*_MACROS in vlc_fixups.h for pre C++11 hosts
parent
5e9dd354
Changes
30
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
14 additions
and
81 deletions
+14
-81
include/vlc_fixups.h
include/vlc_fixups.h
+14
-0
modules/access/dcp/dcp.cpp
modules/access/dcp/dcp.cpp
+0
-1
modules/access/decklink.cpp
modules/access/decklink.cpp
+0
-2
modules/access/dshow/dshow.cpp
modules/access/dshow/dshow.cpp
+0
-2
modules/access/live555.cpp
modules/access/live555.cpp
+0
-6
modules/demux/adaptative/PlaylistManager.cpp
modules/demux/adaptative/PlaylistManager.cpp
+0
-6
modules/demux/adaptative/Streams.cpp
modules/demux/adaptative/Streams.cpp
+0
-1
modules/demux/adaptative/playlist/Segment.cpp
modules/demux/adaptative/playlist/Segment.cpp
+0
-1
modules/demux/adaptative/playlist/SegmentInformation.hpp
modules/demux/adaptative/playlist/SegmentInformation.hpp
+0
-4
modules/demux/adaptative/playlist/SegmentTimeline.cpp
modules/demux/adaptative/playlist/SegmentTimeline.cpp
+0
-1
modules/demux/dash/DASHManager.cpp
modules/demux/dash/DASHManager.cpp
+0
-6
modules/demux/dash/dash.cpp
modules/demux/dash/dash.cpp
+0
-1
modules/demux/dash/mp4/AtomsReader.hpp
modules/demux/dash/mp4/AtomsReader.hpp
+0
-2
modules/demux/dash/mpd/DASHSegment.cpp
modules/demux/dash/mpd/DASHSegment.cpp
+0
-1
modules/demux/hls/hls.cpp
modules/demux/hls/hls.cpp
+0
-1
modules/demux/hls/playlist/Tags.cpp
modules/demux/hls/playlist/Tags.cpp
+0
-1
modules/demux/hls/playlist/Tags.hpp
modules/demux/hls/playlist/Tags.hpp
+0
-4
modules/demux/mkv/mkv.hpp
modules/demux/mkv/mkv.hpp
+0
-7
modules/demux/sid.cpp
modules/demux/sid.cpp
+0
-5
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+0
-2
modules/gui/qt4/components/info_panels.cpp
modules/gui/qt4/components/info_panels.cpp
+0
-3
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+0
-3
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+0
-3
modules/services_discovery/upnp.cpp
modules/services_discovery/upnp.cpp
+0
-2
modules/stream_out/chromecast/cast.cpp
modules/stream_out/chromecast/cast.cpp
+0
-4
modules/video_filter/atmo/AtmoLiveView.cpp
modules/video_filter/atmo/AtmoLiveView.cpp
+0
-2
modules/video_filter/atmo/atmo.cpp
modules/video_filter/atmo/atmo.cpp
+0
-1
modules/video_output/decklink.cpp
modules/video_output/decklink.cpp
+0
-3
modules/visualization/projectm.cpp
modules/visualization/projectm.cpp
+0
-3
modules/visualization/vsxu.cpp
modules/visualization/vsxu.cpp
+0
-3
No files found.
include/vlc_fixups.h
View file @
25930fef
...
@@ -26,6 +26,20 @@
...
@@ -26,6 +26,20 @@
#ifndef LIBVLC_FIXUPS_H
#ifndef LIBVLC_FIXUPS_H
# define LIBVLC_FIXUPS_H 1
# define LIBVLC_FIXUPS_H 1
/* C++11 says there's no need to define __STDC_*_MACROS when including
* inttypes.h and stdint.h. */
#if defined (__cplusplus) && !defined(HAVE_CXX11)
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS 1
#endif
#ifndef __STDC_CONSTANT_MACROS
#define __STDC_CONSTANT_MACROS 1
#endif
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
#endif
#endif
#if !defined (HAVE_GMTIME_R) || !defined (HAVE_LOCALTIME_R)
#if !defined (HAVE_GMTIME_R) || !defined (HAVE_LOCALTIME_R)
# include <time.h>
/* time_t */
# include <time.h>
/* time_t */
#endif
#endif
...
...
modules/access/dcp/dcp.cpp
View file @
25930fef
...
@@ -40,7 +40,6 @@
...
@@ -40,7 +40,6 @@
# include "config.h"
# include "config.h"
#endif
#endif
#define __STDC_CONSTANT_MACROS 1
#define KDM_HELP_TEXT "KDM file"
#define KDM_HELP_TEXT "KDM file"
#define KDM_HELP_LONG_TEXT "Path to Key Delivery Message XML file"
#define KDM_HELP_LONG_TEXT "Path to Key Delivery Message XML file"
...
...
modules/access/decklink.cpp
View file @
25930fef
...
@@ -22,8 +22,6 @@
...
@@ -22,8 +22,6 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
*****************************************************************************/
#define __STDC_CONSTANT_MACROS 1
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
#endif
#endif
...
...
modules/access/dshow/dshow.cpp
View file @
25930fef
...
@@ -30,8 +30,6 @@
...
@@ -30,8 +30,6 @@
# include "config.h"
# include "config.h"
#endif
#endif
#define __STDC_CONSTANT_MACROS 1
#define __STDC_FORMAT_MACROS 1
#define CFG_PREFIX "dshow-"
#define CFG_PREFIX "dshow-"
#include <inttypes.h>
#include <inttypes.h>
#include <list>
#include <list>
...
...
modules/access/live555.cpp
View file @
25930fef
...
@@ -28,12 +28,6 @@
...
@@ -28,12 +28,6 @@
* Preamble
* Preamble
*****************************************************************************/
*****************************************************************************/
/* For inttypes.h
* Note: config.h may include inttypes.h, so make sure we define this option
* early enough. */
#define __STDC_CONSTANT_MACROS 1
#define __STDC_LIMIT_MACROS 1
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
#endif
#endif
...
...
modules/demux/adaptative/PlaylistManager.cpp
View file @
25930fef
...
@@ -19,12 +19,6 @@
...
@@ -19,12 +19,6 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
*****************************************************************************/
/* config.h may include inttypes.h, so make sure we define that option
* early enough. */
#define __STDC_FORMAT_MACROS
#define __STDC_CONSTANT_MACROS
#define __STDC_LIMIT_MACROS
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
#endif
#endif
...
...
modules/demux/adaptative/Streams.cpp
View file @
25930fef
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
* along with this program; if not, write to the Free Software Foundation,
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
*****************************************************************************/
#define __STDC_CONSTANT_MACROS
#include "Streams.hpp"
#include "Streams.hpp"
#include "StreamsType.hpp"
#include "StreamsType.hpp"
#include "http/HTTPConnection.hpp"
#include "http/HTTPConnection.hpp"
...
...
modules/demux/adaptative/playlist/Segment.cpp
View file @
25930fef
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
* along with this program; if not, write to the Free Software Foundation,
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
*****************************************************************************/
#define __STDC_CONSTANT_MACROS
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
...
...
modules/demux/adaptative/playlist/SegmentInformation.hpp
View file @
25930fef
...
@@ -20,10 +20,6 @@
...
@@ -20,10 +20,6 @@
#ifndef SEGMENTINFORMATION_HPP
#ifndef SEGMENTINFORMATION_HPP
#define SEGMENTINFORMATION_HPP
#define SEGMENTINFORMATION_HPP
#ifndef __STDC_CONSTANT_MACROS
#define __STDC_CONSTANT_MACROS
#endif
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
#endif
#endif
...
...
modules/demux/adaptative/playlist/SegmentTimeline.cpp
View file @
25930fef
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
* along with this program; if not, write to the Free Software Foundation,
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
*****************************************************************************/
#define __STDC_CONSTANT_MACROS
#include "SegmentTimeline.h"
#include "SegmentTimeline.h"
...
...
modules/demux/dash/DASHManager.cpp
View file @
25930fef
...
@@ -22,12 +22,6 @@
...
@@ -22,12 +22,6 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
*****************************************************************************/
/* config.h may include inttypes.h, so make sure we define that option
* early enough. */
#define __STDC_FORMAT_MACROS 1
#define __STDC_CONSTANT_MACROS 1
#define __STDC_LIMIT_MACROS 1
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
#endif
#endif
...
...
modules/demux/dash/dash.cpp
View file @
25930fef
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
/*****************************************************************************
/*****************************************************************************
* Preamble
* Preamble
*****************************************************************************/
*****************************************************************************/
#define __STDC_CONSTANT_MACROS 1
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
...
...
modules/demux/dash/mp4/AtomsReader.hpp
View file @
25930fef
...
@@ -20,8 +20,6 @@
...
@@ -20,8 +20,6 @@
#ifndef ATOMSREADER_HPP
#ifndef ATOMSREADER_HPP
#define ATOMSREADER_HPP
#define ATOMSREADER_HPP
#define __STDC_CONSTANT_MACROS
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
#endif
#endif
...
...
modules/demux/dash/mpd/DASHSegment.cpp
View file @
25930fef
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
* along with this program; if not, write to the Free Software Foundation,
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
*****************************************************************************/
#define __STDC_CONSTANT_MACROS
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
...
...
modules/demux/hls/hls.cpp
View file @
25930fef
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
/*****************************************************************************
/*****************************************************************************
* Preamble
* Preamble
*****************************************************************************/
*****************************************************************************/
#define __STDC_CONSTANT_MACROS 1
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
...
...
modules/demux/hls/playlist/Tags.cpp
View file @
25930fef
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include <sstream>
#include <sstream>
#include <stack>
#include <stack>
#define __STDC_CONSTANT_MACROS
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
#endif
#endif
...
...
modules/demux/hls/playlist/Tags.hpp
View file @
25930fef
...
@@ -20,10 +20,6 @@
...
@@ -20,10 +20,6 @@
#ifndef TAGS_HPP
#ifndef TAGS_HPP
#define TAGS_HPP
#define TAGS_HPP
#ifndef __STDC_CONSTANT_MACROS
#define __STDC_CONSTANT_MACROS
#endif
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
#endif
#endif
...
...
modules/demux/mkv/mkv.hpp
View file @
25930fef
...
@@ -29,13 +29,6 @@
...
@@ -29,13 +29,6 @@
* Preamble
* Preamble
*****************************************************************************/
*****************************************************************************/
/* config.h may include inttypes.h, so make sure we define that option
* early enough. */
#define __STDC_FORMAT_MACROS 1
#define __STDC_CONSTANT_MACROS 1
#define __STDC_LIMIT_MACROS 1
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
#endif
#endif
...
...
modules/demux/sid.cpp
View file @
25930fef
...
@@ -33,11 +33,6 @@
...
@@ -33,11 +33,6 @@
# include <config.h>
# include <config.h>
#endif
#endif
/* INT64_C and UINT64_C are only exposed to c++ if this is defined */
#ifndef __STDC_CONSTANT_MACROS
# define __STDC_CONSTANT_MACROS
#endif
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_input.h>
#include <vlc_input.h>
#include <vlc_demux.h>
#include <vlc_demux.h>
...
...
modules/gui/qt4/components/extended_panels.cpp
View file @
25930fef
...
@@ -23,8 +23,6 @@
...
@@ -23,8 +23,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
*****************************************************************************/
#define __STDC_FORMAT_MACROS 1
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
#endif
#endif
...
...
modules/gui/qt4/components/info_panels.cpp
View file @
25930fef
...
@@ -23,9 +23,6 @@
...
@@ -23,9 +23,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
*****************************************************************************/
#define __STDC_FORMAT_MACROS 1
#define __STDC_CONSTANT_MACROS 1
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
#endif
#endif
...
...
modules/gui/qt4/input_manager.cpp
View file @
25930fef
...
@@ -23,9 +23,6 @@
...
@@ -23,9 +23,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
*****************************************************************************/
#define __STDC_FORMAT_MACROS 1
#define __STDC_CONSTANT_MACROS 1
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
#endif
#endif
...
...
modules/gui/qt4/menus.cpp
View file @
25930fef
...
@@ -27,9 +27,6 @@
...
@@ -27,9 +27,6 @@
* - Remove static currentGroup
* - Remove static currentGroup
*/
*/
#define __STDC_FORMAT_MACROS 1
#define __STDC_CONSTANT_MACROS 1
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
#endif
#endif
...
...
modules/services_discovery/upnp.cpp
View file @
25930fef
...
@@ -26,8 +26,6 @@
...
@@ -26,8 +26,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
*****************************************************************************/
#define __STDC_CONSTANT_MACROS 1
#include "upnp.hpp"
#include "upnp.hpp"
#include <vlc_access.h>
#include <vlc_access.h>
...
...
modules/stream_out/chromecast/cast.cpp
View file @
25930fef
...
@@ -33,10 +33,6 @@
...
@@ -33,10 +33,6 @@
# include <poll.h>
# include <poll.h>
#endif
#endif
#ifndef __STDC_CONSTANT_MACROS
# define __STDC_CONSTANT_MACROS
#endif
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_plugin.h>
#include <vlc_sout.h>
#include <vlc_sout.h>
...
...
modules/video_filter/atmo/AtmoLiveView.cpp
View file @
25930fef
...
@@ -12,8 +12,6 @@
...
@@ -12,8 +12,6 @@
# include "config.h"
# include "config.h"
#endif
#endif
#define __STDC_FORMAT_MACROS 1
#include "AtmoDefs.h"
#include "AtmoDefs.h"
#include "AtmoLiveView.h"
#include "AtmoLiveView.h"
#include "AtmoOutputFilter.h"
#include "AtmoOutputFilter.h"
...
...
modules/video_filter/atmo/atmo.cpp
View file @
25930fef
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
/*****************************************************************************
/*****************************************************************************
* Preamble
* Preamble
*****************************************************************************/
*****************************************************************************/
#define __STDC_FORMAT_MACROS 1
#include <stdlib.h>
/* malloc(), free() */
#include <stdlib.h>
/* malloc(), free() */
#include <string.h>
#include <string.h>
#include <math.h>
/* sin(), cos() */
#include <math.h>
/* sin(), cos() */
...
...
modules/video_output/decklink.cpp
View file @
25930fef
...
@@ -26,9 +26,6 @@
...
@@ -26,9 +26,6 @@
* TODO: test non stereo audio
* TODO: test non stereo audio
*/
*/
#define __STDC_FORMAT_MACROS
#define __STDC_CONSTANT_MACROS
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
#endif
#endif
...
...
modules/visualization/projectm.cpp
View file @
25930fef
...
@@ -25,9 +25,6 @@
...
@@ -25,9 +25,6 @@
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
#endif
#endif
#ifndef __STDC_CONSTANT_MACROS
# define __STDC_CONSTANT_MACROS
#endif
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_plugin.h>
...
...
modules/visualization/vsxu.cpp
View file @
25930fef
...
@@ -28,9 +28,6 @@
...
@@ -28,9 +28,6 @@
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
#endif
#endif
#ifndef __STDC_CONSTANT_MACROS
# define __STDC_CONSTANT_MACROS
#endif
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_plugin.h>
...
...
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