Skip to content

Commit

Permalink
[c++11] - add more missing explicit includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Memphiz committed Feb 11, 2015
1 parent 6044eaf commit 262edf9
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions xbmc/AppParamParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#ifndef TARGET_WINDOWS
#include "linux/XTimeUtils.h"
#endif
#include <stdlib.h>

CAppParamParser::CAppParamParser()
{
Expand Down
4 changes: 2 additions & 2 deletions xbmc/Autorun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "system.h"

#ifdef HAS_DVD_DRIVE
#include <stdlib.h>

#include "Autorun.h"
#include "Application.h"
Expand All @@ -46,7 +47,6 @@
#include "cdrip/CDDARipper.h"
#endif

using namespace std;
using namespace XFILE;
using namespace PLAYLIST;
using namespace MEDIA_DETECT;
Expand Down Expand Up @@ -109,7 +109,7 @@ bool CAutorun::PlayDisc(const std::string& path, bool bypassSettings, bool start
mediaPath = g_mediaManager.GetDiscPath();

const CURL pathToUrl(mediaPath);
unique_ptr<IDirectory> pDir ( CDirectoryFactory::Create( pathToUrl ));
std::unique_ptr<IDirectory> pDir ( CDirectoryFactory::Create( pathToUrl ));
bool bPlaying = RunDisc(pDir.get(), mediaPath, nAddedToPlaylist, true, bypassSettings, startFromBeginning);

if ( !bPlaying && nAddedToPlaylist > 0 )
Expand Down
1 change: 1 addition & 0 deletions xbmc/cores/omxplayer/OMXAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include "guilib/LocalizeStrings.h"
#include "cores/AudioEngine/AEFactory.h"
#include "Util.h"
#include <cassert>

extern "C" {
#include "libavutil/crc.h"
Expand Down
1 change: 1 addition & 0 deletions xbmc/cores/omxplayer/OMXImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "utils/URIUtils.h"
#include "windowing/WindowingFactory.h"
#include "Application.h"
#include <cassert>

#ifdef _DEBUG
#define CheckError() m_result = eglGetError(); if (m_result != EGL_SUCCESS) CLog::Log(LOGERROR, "EGL error in %s: %x",__FUNCTION__, m_result);
Expand Down
1 change: 1 addition & 0 deletions xbmc/guilib/TransformMatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <memory>
#include <string.h>
#include <stdint.h>
#include <algorithm>

#ifdef __GNUC__
// under gcc, inline will only take place if optimizations are applied (-O). this will force inline even whith optimizations.
Expand Down
1 change: 1 addition & 0 deletions xbmc/linux/LinuxTimezone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "XBDateTime.h"
#include "settings/lib/Setting.h"
#include "settings/Settings.h"
#include <stdlib.h>

#include <algorithm>

Expand Down
1 change: 1 addition & 0 deletions xbmc/linux/OMXCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

#include "OMXClock.h"
#include "xbmc/linux/RBP.h"
#include <cassert>

#ifdef TARGET_LINUX
#include "XMemUtils.h"
Expand Down
1 change: 1 addition & 0 deletions xbmc/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#ifdef HAS_SDL
#include <SDL/SDL.h>
#endif
#include <locale.h>
#endif
#ifdef HAS_LIRC
#include "input/linux/LIRC.h"
Expand Down
1 change: 1 addition & 0 deletions xbmc/storage/osx/DarwinStorageProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*
*/

#include <stdlib.h>
#include "DarwinStorageProvider.h"
#include "utils/RegExp.h"
#include "Util.h"
Expand Down
1 change: 1 addition & 0 deletions xbmc/windowing/egl/EGLNativeTypeRaspberryPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "linux/RBP.h"
#include "utils/StringUtils.h"
#include "settings/Settings.h"
#include <cassert>

#ifndef __VIDEOCORE4__
#define __VIDEOCORE4__
Expand Down

0 comments on commit 262edf9

Please sign in to comment.