aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorh.udo <hudokkow@gmail.com>2018-06-05 19:35:21 +0100
committerh.udo <hudokkow@gmail.com>2018-06-12 10:25:50 +0100
commit26b5b718ddcb3959afbf9af9509f56f07297ea74 (patch)
tree359f4ed2ee785f4f127ae7ef7b937c2df75c331a
parent40a6bed8e7a599a4c0654ecc3a1cd74e65c65f35 (diff)
[xbmc] missing pragma once
-rw-r--r--xbmc/AppParamParser.h2
-rw-r--r--xbmc/DllPaths.h2
-rw-r--r--xbmc/DllPaths_generated.h.in2
-rw-r--r--xbmc/DllPaths_win32.h2
-rw-r--r--xbmc/XBApplicationEx.h2
-rw-r--r--xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_dll.h3
-rw-r--r--xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_types.h3
-rw-r--r--xbmc/cores/DllLoader/LibraryLoader.h2
-rw-r--r--xbmc/cores/DllLoader/SoLoader.h2
-rw-r--r--xbmc/cores/VideoPlayer/DVDCodecs/Overlay/contrib/cc_decoder.h2
-rw-r--r--xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/decoder.h2
-rw-r--r--xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvd_reader.h2
-rw-r--r--xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvd_types.h2
-rw-r--r--xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvdnav.h2
-rw-r--r--xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvdnav_events.h2
-rw-r--r--xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvdnav_internal.h2
-rw-r--r--xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/ifo_types.h2
-rw-r--r--xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/nav_types.h2
-rw-r--r--xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/remap.h2
-rw-r--r--xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/vm.h2
-rw-r--r--xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/vmcmd.h2
-rw-r--r--xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/dither.h2
-rw-r--r--xbmc/cores/VideoPlayer/VideoRenderers/yuv2rgb.neon.h2
-rw-r--r--xbmc/cores/paplayer/VideoPlayerCodec.h2
-rw-r--r--xbmc/filesystem/CacheStrategy.h1
-rw-r--r--xbmc/filesystem/CircularCache.h2
-rw-r--r--xbmc/filesystem/NFSFile.h2
-rw-r--r--xbmc/filesystem/RSSDirectory.h2
-rw-r--r--xbmc/filesystem/UDFDirectory.h3
-rw-r--r--xbmc/filesystem/ZipFile.h2
-rw-r--r--xbmc/filesystem/ZipManager.h2
-rw-r--r--xbmc/filesystem/udf25.h3
-rw-r--r--xbmc/guilib/GUIBorderedImage.h2
-rw-r--r--xbmc/input/XBMC_keysym.h2
-rw-r--r--xbmc/input/XBMC_vkeys.h2
-rw-r--r--xbmc/input/mouse/MouseStat.h2
-rw-r--r--xbmc/input/remote/IRRemote.h2
-rw-r--r--xbmc/interfaces/json-rpc/PlaylistOperations.h2
-rw-r--r--xbmc/interfaces/legacy/ModuleXbmc.h2
-rw-r--r--xbmc/interfaces/legacy/ModuleXbmcgui.h2
-rw-r--r--xbmc/interfaces/legacy/ModuleXbmcplugin.h2
-rw-r--r--xbmc/interfaces/python/CallbackHandler.h2
-rw-r--r--xbmc/interfaces/python/PyContext.h3
-rw-r--r--xbmc/network/WakeOnAccess.h2
-rw-r--r--xbmc/network/upnp/UPnPPlayer.h2
-rw-r--r--xbmc/pictures/IptcParse.h2
-rw-r--r--xbmc/pictures/libexif.h2
-rw-r--r--xbmc/platform/MessagePrinter.h4
-rw-r--r--xbmc/platform/darwin/NSLogDebugHelpers.h1
-rw-r--r--xbmc/platform/darwin/ios/XBMCDebugHelpers.h1
-rw-r--r--xbmc/platform/linux/LinuxTimezone.h2
-rw-r--r--xbmc/platform/linux/OMXClock.h2
-rw-r--r--xbmc/platform/linux/XHandlePublic.h2
-rw-r--r--xbmc/platform/linux/input/LibInputPointer.h2
-rw-r--r--xbmc/platform/linux/input/LibInputTouch.h2
-rw-r--r--xbmc/platform/linux/network/NetworkLinux.h2
-rw-r--r--xbmc/platform/linux/powermanagement/ConsoleUPowerSyscall.h2
-rw-r--r--xbmc/platform/linux/powermanagement/LogindUPowerSyscall.h2
-rw-r--r--xbmc/platform/linux/stat_utf8.h2
-rw-r--r--xbmc/platform/linux/stdio_utf8.h2
-rw-r--r--xbmc/platform/win32/dirent.h3
-rw-r--r--xbmc/platform/win32/my_ntddcdrm.h4
-rw-r--r--xbmc/platform/win32/my_ntddscsi.h4
-rw-r--r--xbmc/platform/win32/network/NetworkWin32.h3
-rw-r--r--xbmc/platform/win32/resource.h2
-rw-r--r--xbmc/platform/win32/utils/gpu_memcpy_sse4.h4
-rw-r--r--xbmc/powermanagement/DPMSSupport.h2
-rw-r--r--xbmc/utils/BitstreamStats.h2
-rw-r--r--xbmc/utils/CPUInfo.h2
-rw-r--r--xbmc/utils/HttpParser.h2
-rw-r--r--xbmc/utils/POUtils.h2
-rw-r--r--xbmc/utils/ScraperParser.h2
-rw-r--r--xbmc/utils/ScraperUrl.h2
-rw-r--r--xbmc/windowing/rpi/RPIUtils.h2
-rw-r--r--xbmc/windowing/win10/WinSystemWin10DX.h2
-rw-r--r--xbmc/windowing/windows/WinSystemWin32.h2
76 files changed, 160 insertions, 4 deletions
diff --git a/xbmc/AppParamParser.h b/xbmc/AppParamParser.h
index df06e45d9b..d462e76efa 100644
--- a/xbmc/AppParamParser.h
+++ b/xbmc/AppParamParser.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#include "FileItem.h"
class CAppParamParser
diff --git a/xbmc/DllPaths.h b/xbmc/DllPaths.h
index c5ba8ef340..9ad6b6be2f 100644
--- a/xbmc/DllPaths.h
+++ b/xbmc/DllPaths.h
@@ -21,6 +21,8 @@
*
*/
+#pragma once
+
#ifdef TARGET_WINDOWS
#include "DllPaths_win32.h"
#elif defined (TARGET_ANDROID)
diff --git a/xbmc/DllPaths_generated.h.in b/xbmc/DllPaths_generated.h.in
index 49cc8290af..db018c164b 100644
--- a/xbmc/DllPaths_generated.h.in
+++ b/xbmc/DllPaths_generated.h.in
@@ -21,6 +21,8 @@
*
*/
+#pragma once
+
/* prefix install location */
#define PREFIX_USR_PATH "@prefix@"
diff --git a/xbmc/DllPaths_win32.h b/xbmc/DllPaths_win32.h
index 8bd3fc8ace..a5a1d4703a 100644
--- a/xbmc/DllPaths_win32.h
+++ b/xbmc/DllPaths_win32.h
@@ -21,6 +21,8 @@
*
*/
+#pragma once
+
/* libraries */
#define DLL_PATH_LIBNFS "special://xbmcbin/libnfs.dll"
#define DLL_PATH_LIBPLIST "special://xbmcbin/libplist.dll"
diff --git a/xbmc/XBApplicationEx.h b/xbmc/XBApplicationEx.h
index 4507f7c488..5d05b56256 100644
--- a/xbmc/XBApplicationEx.h
+++ b/xbmc/XBApplicationEx.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#ifndef XBAPPLICATIONEX_H
#define XBAPPLICATIONEX_H
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_dll.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_dll.h
index 298456ad85..4c1d91c282 100644
--- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_dll.h
+++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_dll.h
@@ -17,6 +17,9 @@
* <http://www.gnu.org/licenses/>.
*
*/
+
+#pragma once
+
#ifndef KODI_GAME_DLL_H_
#define KODI_GAME_DLL_H_
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_types.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_types.h
index 6c3a312a9f..48c91b005b 100644
--- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_types.h
+++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_types.h
@@ -17,6 +17,9 @@
* <http://www.gnu.org/licenses/>.
*
*/
+
+#pragma once
+
#ifndef KODI_GAME_TYPES_H_
#define KODI_GAME_TYPES_H_
diff --git a/xbmc/cores/DllLoader/LibraryLoader.h b/xbmc/cores/DllLoader/LibraryLoader.h
index 4f1bd2b452..34012c7cf2 100644
--- a/xbmc/cores/DllLoader/LibraryLoader.h
+++ b/xbmc/cores/DllLoader/LibraryLoader.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#ifndef LIBRARY_LOADER
#define LIBRARY_LOADER
diff --git a/xbmc/cores/DllLoader/SoLoader.h b/xbmc/cores/DllLoader/SoLoader.h
index f47c03376a..924a477a76 100644
--- a/xbmc/cores/DllLoader/SoLoader.h
+++ b/xbmc/cores/DllLoader/SoLoader.h
@@ -21,6 +21,8 @@
*
*/
+#pragma once
+
#include <stdio.h>
#ifdef TARGET_POSIX
#include "PlatformDefs.h"
diff --git a/xbmc/cores/VideoPlayer/DVDCodecs/Overlay/contrib/cc_decoder.h b/xbmc/cores/VideoPlayer/DVDCodecs/Overlay/contrib/cc_decoder.h
index 67a9daa362..182f958d46 100644
--- a/xbmc/cores/VideoPlayer/DVDCodecs/Overlay/contrib/cc_decoder.h
+++ b/xbmc/cores/VideoPlayer/DVDCodecs/Overlay/contrib/cc_decoder.h
@@ -27,6 +27,8 @@
* available at http://sourceforge.net/projects/ccdecoder/.
*/
+#pragma once
+
#include <stdint.h>
#define CC_ROWS 15
diff --git a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/decoder.h b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/decoder.h
index 5faa3395c9..f88f520119 100644
--- a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/decoder.h
+++ b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/decoder.h
@@ -19,6 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#pragma once
+
#ifndef LIBDVDNAV_DECODER_H
#define LIBDVDNAV_DECODER_H
diff --git a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvd_reader.h b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvd_reader.h
index d8092b4376..17bebe9dd4 100644
--- a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvd_reader.h
+++ b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvd_reader.h
@@ -20,6 +20,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#pragma once
+
#ifndef LIBDVDREAD_DVD_READER_H
#define LIBDVDREAD_DVD_READER_H
diff --git a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvd_types.h b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvd_types.h
index 145059032e..4a8349e260 100644
--- a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvd_types.h
+++ b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvd_types.h
@@ -19,6 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#pragma once
+
/*
* Various useful structs and enums for DVDs.
*/
diff --git a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvdnav.h b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvdnav.h
index 9bc780e1f7..394fc68450 100644
--- a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvdnav.h
+++ b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvdnav.h
@@ -23,6 +23,8 @@
* to access dvdnav functionality.
*/
+#pragma once
+
#ifndef LIBDVDNAV_DVDNAV_H
#define LIBDVDNAV_DVDNAV_H
diff --git a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvdnav_events.h b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvdnav_events.h
index f32edc6bee..896ae2688a 100644
--- a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvdnav_events.h
+++ b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvdnav_events.h
@@ -22,6 +22,8 @@
* This header defines events and event types
*/
+#pragma once
+
#ifndef LIBDVDNAV_DVDNAV_EVENTS_H
#define LIBDVDNAV_DVDNAV_EVENTS_H
diff --git a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvdnav_internal.h b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvdnav_internal.h
index 558e2bdf3c..1788434552 100644
--- a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvdnav_internal.h
+++ b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/dvdnav_internal.h
@@ -18,6 +18,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#pragma once
+
#ifndef LIBDVDNAV_DVDNAV_INTERNAL_H
#define LIBDVDNAV_DVDNAV_INTERNAL_H
diff --git a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/ifo_types.h b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/ifo_types.h
index b1a194c918..90538baaad 100644
--- a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/ifo_types.h
+++ b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/ifo_types.h
@@ -19,6 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#pragma once
+
#ifndef LIBDVDREAD_IFO_TYPES_H
#define LIBDVDREAD_IFO_TYPES_H
diff --git a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/nav_types.h b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/nav_types.h
index 93a4e6bd34..0955f4b76b 100644
--- a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/nav_types.h
+++ b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/nav_types.h
@@ -25,6 +25,8 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#pragma once
+
#ifndef LIBDVDREAD_NAV_TYPES_H
#define LIBDVDREAD_NAV_TYPES_H
diff --git a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/remap.h b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/remap.h
index cb78c37969..9a7009688d 100644
--- a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/remap.h
+++ b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/remap.h
@@ -16,6 +16,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#pragma once
+
#ifndef LIBDVDNAV_REMAP_H
#define LIBDVDNAV_REMAP_H
typedef struct block_s block_t;
diff --git a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/vm.h b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/vm.h
index c211697363..11bc4a32fb 100644
--- a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/vm.h
+++ b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/vm.h
@@ -20,6 +20,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#pragma once
+
#ifndef LIBDVDNAV_VM_H
#define LIBDVDNAV_VM_H
diff --git a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/vmcmd.h b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/vmcmd.h
index 74d513d03f..05bc9df4af 100644
--- a/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/vmcmd.h
+++ b/xbmc/cores/VideoPlayer/DVDInputStreams/dvdnav/vmcmd.h
@@ -19,6 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#pragma once
+
#ifndef LIBDVDNAV_VMCMD_H
#define LIBDVDNAV_VMCMD_H
diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/dither.h b/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/dither.h
index d9a6bd736f..c7b722020f 100644
--- a/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/dither.h
+++ b/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/dither.h
@@ -1,5 +1,7 @@
// Generated with https://git.fruit.je/src?a=blob;f=dither/dither.c;h=913d06c11f8d7cbd24121ecd772396b7c10f4826;hb=HEAD
+#pragma once
+
#include <stdint.h>
static const int dither_size = 64;
diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/yuv2rgb.neon.h b/xbmc/cores/VideoPlayer/VideoRenderers/yuv2rgb.neon.h
index ed6ced9899..ba5517aa1d 100644
--- a/xbmc/cores/VideoPlayer/VideoRenderers/yuv2rgb.neon.h
+++ b/xbmc/cores/VideoPlayer/VideoRenderers/yuv2rgb.neon.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/xbmc/cores/paplayer/VideoPlayerCodec.h b/xbmc/cores/paplayer/VideoPlayerCodec.h
index 43d3deca10..a03ce600f4 100644
--- a/xbmc/cores/paplayer/VideoPlayerCodec.h
+++ b/xbmc/cores/paplayer/VideoPlayerCodec.h
@@ -21,6 +21,8 @@
*
*/
+#pragma once
+
#include "ICodec.h"
#include "cores/VideoPlayer/DVDDemuxers/DVDDemux.h"
diff --git a/xbmc/filesystem/CacheStrategy.h b/xbmc/filesystem/CacheStrategy.h
index 1cee899a41..11ab30edc2 100644
--- a/xbmc/filesystem/CacheStrategy.h
+++ b/xbmc/filesystem/CacheStrategy.h
@@ -18,6 +18,7 @@
*
*/
+#pragma once
#ifndef XFILECACHESTRATEGY_H
#define XFILECACHESTRATEGY_H
diff --git a/xbmc/filesystem/CircularCache.h b/xbmc/filesystem/CircularCache.h
index 1ff2321730..4efe2df2c5 100644
--- a/xbmc/filesystem/CircularCache.h
+++ b/xbmc/filesystem/CircularCache.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#ifndef CACHECIRCULAR_H
#define CACHECIRCULAR_H
diff --git a/xbmc/filesystem/NFSFile.h b/xbmc/filesystem/NFSFile.h
index a0923ff32f..9439bb2946 100644
--- a/xbmc/filesystem/NFSFile.h
+++ b/xbmc/filesystem/NFSFile.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
// FileNFS.h: interface for the CNFSFile class.
#ifndef FILENFS_H_
#define FILENFS_H_
diff --git a/xbmc/filesystem/RSSDirectory.h b/xbmc/filesystem/RSSDirectory.h
index e4a1f12807..a6b2a37cd8 100644
--- a/xbmc/filesystem/RSSDirectory.h
+++ b/xbmc/filesystem/RSSDirectory.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#ifndef CRSSDIRECTORY_H_
#define CRSSDIRECTORY_H_
diff --git a/xbmc/filesystem/UDFDirectory.h b/xbmc/filesystem/UDFDirectory.h
index 5c1b7ef218..087c5751e3 100644
--- a/xbmc/filesystem/UDFDirectory.h
+++ b/xbmc/filesystem/UDFDirectory.h
@@ -22,6 +22,9 @@
* <http://www.gnu.org/licenses/>.
*
*/
+
+#pragma once
+
#include "IFileDirectory.h"
namespace XFILE
diff --git a/xbmc/filesystem/ZipFile.h b/xbmc/filesystem/ZipFile.h
index 09590dd882..748b4e2217 100644
--- a/xbmc/filesystem/ZipFile.h
+++ b/xbmc/filesystem/ZipFile.h
@@ -20,6 +20,8 @@
*
*/
+#pragma once
+
#include "IFile.h"
#include <zlib.h>
#include "File.h"
diff --git a/xbmc/filesystem/ZipManager.h b/xbmc/filesystem/ZipManager.h
index 8757041fe9..277f423d83 100644
--- a/xbmc/filesystem/ZipManager.h
+++ b/xbmc/filesystem/ZipManager.h
@@ -21,6 +21,8 @@
*
*/
+#pragma once
+
// See http://www.pkware.com/documents/casestudies/APPNOTE.TXT
#define ZIP_LOCAL_HEADER 0x04034b50
#define ZIP_DATA_RECORD_HEADER 0x08074b50
diff --git a/xbmc/filesystem/udf25.h b/xbmc/filesystem/udf25.h
index 884273c75a..40d73ff27d 100644
--- a/xbmc/filesystem/udf25.h
+++ b/xbmc/filesystem/udf25.h
@@ -25,6 +25,9 @@
* Jorgen Lundman and team boxee did the necessary modifications to support udf 2.5
*
*/
+
+#pragma once
+
#include "File.h"
/**
diff --git a/xbmc/guilib/GUIBorderedImage.h b/xbmc/guilib/GUIBorderedImage.h
index c8cbcafb88..50b8a8e8ed 100644
--- a/xbmc/guilib/GUIBorderedImage.h
+++ b/xbmc/guilib/GUIBorderedImage.h
@@ -21,6 +21,8 @@
*
*/
+#pragma once
+
#include "GUIControl.h"
#include "TextureManager.h"
#include "GUIImage.h"
diff --git a/xbmc/input/XBMC_keysym.h b/xbmc/input/XBMC_keysym.h
index eeb833d40e..b8ad3078fc 100644
--- a/xbmc/input/XBMC_keysym.h
+++ b/xbmc/input/XBMC_keysym.h
@@ -20,6 +20,8 @@
slouken@libsdl.org
*/
+#pragma once
+
#ifndef XBMC_keysym_h
#define XBMC_keysym_h
diff --git a/xbmc/input/XBMC_vkeys.h b/xbmc/input/XBMC_vkeys.h
index 4e3787c283..24499d7dd2 100644
--- a/xbmc/input/XBMC_vkeys.h
+++ b/xbmc/input/XBMC_vkeys.h
@@ -20,6 +20,8 @@
slouken@libsdl.org
*/
+#pragma once
+
#ifndef XBMC_vkeys_h
#define XBMC_vkeys_h
diff --git a/xbmc/input/mouse/MouseStat.h b/xbmc/input/mouse/MouseStat.h
index 4eab9ae6fe..b9b6850944 100644
--- a/xbmc/input/mouse/MouseStat.h
+++ b/xbmc/input/mouse/MouseStat.h
@@ -21,6 +21,8 @@
*
*/
+#pragma once
+
#include "windowing/XBMC_events.h"
#define XBMC_BUTTON(X) (1 << ((X)-1))
diff --git a/xbmc/input/remote/IRRemote.h b/xbmc/input/remote/IRRemote.h
index bfdcbf1fab..1eb5c133ce 100644
--- a/xbmc/input/remote/IRRemote.h
+++ b/xbmc/input/remote/IRRemote.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#ifndef XBIRREMOTE_H
#define XBIRREMOTE_H
diff --git a/xbmc/interfaces/json-rpc/PlaylistOperations.h b/xbmc/interfaces/json-rpc/PlaylistOperations.h
index 38707ca269..8d89d29959 100644
--- a/xbmc/interfaces/json-rpc/PlaylistOperations.h
+++ b/xbmc/interfaces/json-rpc/PlaylistOperations.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#include "JSONRPC.h"
#include "FileItemHandler.h"
#include "FileItem.h"
diff --git a/xbmc/interfaces/legacy/ModuleXbmc.h b/xbmc/interfaces/legacy/ModuleXbmc.h
index 00ebb4036f..51cd0cd5a8 100644
--- a/xbmc/interfaces/legacy/ModuleXbmc.h
+++ b/xbmc/interfaces/legacy/ModuleXbmc.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#include "AddonString.h"
#include "Tuple.h"
//#include "Monitor.h"
diff --git a/xbmc/interfaces/legacy/ModuleXbmcgui.h b/xbmc/interfaces/legacy/ModuleXbmcgui.h
index 554e12bf7a..47760ac20a 100644
--- a/xbmc/interfaces/legacy/ModuleXbmcgui.h
+++ b/xbmc/interfaces/legacy/ModuleXbmcgui.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#include "swighelper.h"
#include "guilib/GUIEditControl.h"
diff --git a/xbmc/interfaces/legacy/ModuleXbmcplugin.h b/xbmc/interfaces/legacy/ModuleXbmcplugin.h
index 010bd5fe63..8bf53a2422 100644
--- a/xbmc/interfaces/legacy/ModuleXbmcplugin.h
+++ b/xbmc/interfaces/legacy/ModuleXbmcplugin.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#include <vector>
#include "Tuple.h"
diff --git a/xbmc/interfaces/python/CallbackHandler.h b/xbmc/interfaces/python/CallbackHandler.h
index c8872eca8c..db2d1fe3a8 100644
--- a/xbmc/interfaces/python/CallbackHandler.h
+++ b/xbmc/interfaces/python/CallbackHandler.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#include <Python.h>
#include "interfaces/legacy/CallbackHandler.h"
diff --git a/xbmc/interfaces/python/PyContext.h b/xbmc/interfaces/python/PyContext.h
index 6321df300b..755ab4266b 100644
--- a/xbmc/interfaces/python/PyContext.h
+++ b/xbmc/interfaces/python/PyContext.h
@@ -17,6 +17,9 @@
* <http://www.gnu.org/licenses/>.
*
*/
+
+#pragma once
+
namespace XBMCAddon
{
namespace Python
diff --git a/xbmc/network/WakeOnAccess.h b/xbmc/network/WakeOnAccess.h
index d43dd53954..b6ec0b425d 100644
--- a/xbmc/network/WakeOnAccess.h
+++ b/xbmc/network/WakeOnAccess.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#include "URL.h"
#include "XBDateTime.h"
#include "settings/lib/ISettingCallback.h"
diff --git a/xbmc/network/upnp/UPnPPlayer.h b/xbmc/network/upnp/UPnPPlayer.h
index 61838c3f93..d3610f1f6d 100644
--- a/xbmc/network/upnp/UPnPPlayer.h
+++ b/xbmc/network/upnp/UPnPPlayer.h
@@ -19,6 +19,8 @@
*
*/
+#pragma once
+
#include "cores/IPlayer.h"
#include "guilib/DispResource.h"
#include "threads/SystemClock.h"
diff --git a/xbmc/pictures/IptcParse.h b/xbmc/pictures/IptcParse.h
index e175ef769f..951b71ee26 100644
--- a/xbmc/pictures/IptcParse.h
+++ b/xbmc/pictures/IptcParse.h
@@ -1,3 +1,5 @@
+#pragma once
+
#ifndef __IPTC_PARSE_H
#define __IPTC_PARSE_H
diff --git a/xbmc/pictures/libexif.h b/xbmc/pictures/libexif.h
index 519ac3044e..5e3bdb75a2 100644
--- a/xbmc/pictures/libexif.h
+++ b/xbmc/pictures/libexif.h
@@ -1,3 +1,5 @@
+#pragma once
+
#ifndef HAS_LIBEXIF_H
#define HAS_LIBEXIF_H
diff --git a/xbmc/platform/MessagePrinter.h b/xbmc/platform/MessagePrinter.h
index 17e7fb86ef..69c502097e 100644
--- a/xbmc/platform/MessagePrinter.h
+++ b/xbmc/platform/MessagePrinter.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#include <string>
#include <vector>
#include <utility>
@@ -50,4 +52,4 @@ public:
help.push_back(std::make_pair("--help", "this displays the help))
*/
static void DisplayHelpMessage(const std::vector<std::pair<std::string, std::string>>& help);
-}; \ No newline at end of file
+};
diff --git a/xbmc/platform/darwin/NSLogDebugHelpers.h b/xbmc/platform/darwin/NSLogDebugHelpers.h
index 67a4712fd2..6fa170ad0e 100644
--- a/xbmc/platform/darwin/NSLogDebugHelpers.h
+++ b/xbmc/platform/darwin/NSLogDebugHelpers.h
@@ -30,6 +30,7 @@
* Copyright (C) 2007-2008 Eric Steil III
*
*/
+
#define DEBUG
#ifdef DEBUG
#define LOG(s, ...) NSLog(@"[DEBUG] " s, ##__VA_ARGS__)
diff --git a/xbmc/platform/darwin/ios/XBMCDebugHelpers.h b/xbmc/platform/darwin/ios/XBMCDebugHelpers.h
index f638ad4776..7f6420abdc 100644
--- a/xbmc/platform/darwin/ios/XBMCDebugHelpers.h
+++ b/xbmc/platform/darwin/ios/XBMCDebugHelpers.h
@@ -30,6 +30,7 @@
* Copyright (C) 2007-2008 Eric Steil III
*
*/
+
#define DEBUG
#ifdef DEBUG
#define LOG(s, ...) NSLog(@"[DEBUG] " s, ##__VA_ARGS__)
diff --git a/xbmc/platform/linux/LinuxTimezone.h b/xbmc/platform/linux/LinuxTimezone.h
index c3316c5aa8..c86d4659c5 100644
--- a/xbmc/platform/linux/LinuxTimezone.h
+++ b/xbmc/platform/linux/LinuxTimezone.h
@@ -21,6 +21,8 @@
*
*/
+#pragma once
+
#include "settings/lib/ISettingCallback.h"
#include "settings/lib/ISettingsHandler.h"
#include <string>
diff --git a/xbmc/platform/linux/OMXClock.h b/xbmc/platform/linux/OMXClock.h
index 692c704dfa..2bbbb12fe5 100644
--- a/xbmc/platform/linux/OMXClock.h
+++ b/xbmc/platform/linux/OMXClock.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#ifndef _AVCLOCK_H_
#define _AVCLOCK_H_
diff --git a/xbmc/platform/linux/XHandlePublic.h b/xbmc/platform/linux/XHandlePublic.h
index a4a3af5d55..01799b846b 100644
--- a/xbmc/platform/linux/XHandlePublic.h
+++ b/xbmc/platform/linux/XHandlePublic.h
@@ -21,6 +21,8 @@
*
*/
+#pragma once
+
struct CXHandle;
typedef CXHandle* HANDLE;
typedef HANDLE* LPHANDLE;
diff --git a/xbmc/platform/linux/input/LibInputPointer.h b/xbmc/platform/linux/input/LibInputPointer.h
index 4c1b9fc696..e125f9f0da 100644
--- a/xbmc/platform/linux/input/LibInputPointer.h
+++ b/xbmc/platform/linux/input/LibInputPointer.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#include <libinput.h>
struct pos
diff --git a/xbmc/platform/linux/input/LibInputTouch.h b/xbmc/platform/linux/input/LibInputTouch.h
index 994dedfe5b..740d152bc3 100644
--- a/xbmc/platform/linux/input/LibInputTouch.h
+++ b/xbmc/platform/linux/input/LibInputTouch.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#include "input/touch/generic/GenericTouchInputHandler.h"
#include "utils/Geometry.h"
diff --git a/xbmc/platform/linux/network/NetworkLinux.h b/xbmc/platform/linux/network/NetworkLinux.h
index 90308706d7..09207fde33 100644
--- a/xbmc/platform/linux/network/NetworkLinux.h
+++ b/xbmc/platform/linux/network/NetworkLinux.h
@@ -21,6 +21,8 @@
*
*/
+#pragma once
+
#include <string>
#include <vector>
#include <cstdio>
diff --git a/xbmc/platform/linux/powermanagement/ConsoleUPowerSyscall.h b/xbmc/platform/linux/powermanagement/ConsoleUPowerSyscall.h
index 7f6047813c..80aeb9ad32 100644
--- a/xbmc/platform/linux/powermanagement/ConsoleUPowerSyscall.h
+++ b/xbmc/platform/linux/powermanagement/ConsoleUPowerSyscall.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#include "UPowerSyscall.h"
#include "DBusUtil.h"
diff --git a/xbmc/platform/linux/powermanagement/LogindUPowerSyscall.h b/xbmc/platform/linux/powermanagement/LogindUPowerSyscall.h
index 197b416e63..222dc42237 100644
--- a/xbmc/platform/linux/powermanagement/LogindUPowerSyscall.h
+++ b/xbmc/platform/linux/powermanagement/LogindUPowerSyscall.h
@@ -19,6 +19,8 @@
*
*/
+#pragma once
+
#include "powermanagement/IPowerSyscall.h"
#include "DBusUtil.h"
diff --git a/xbmc/platform/linux/stat_utf8.h b/xbmc/platform/linux/stat_utf8.h
index 0c3300dbbe..1be0ba5dee 100644
--- a/xbmc/platform/linux/stat_utf8.h
+++ b/xbmc/platform/linux/stat_utf8.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#ifndef STAT_UTF8_H__
#define STAT_UTF8_H__
diff --git a/xbmc/platform/linux/stdio_utf8.h b/xbmc/platform/linux/stdio_utf8.h
index dab616d639..6ed773e331 100644
--- a/xbmc/platform/linux/stdio_utf8.h
+++ b/xbmc/platform/linux/stdio_utf8.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#ifndef STDIO_UTF8_H__
#define STDIO_UTF8_H__
diff --git a/xbmc/platform/win32/dirent.h b/xbmc/platform/win32/dirent.h
index 27a5750793..0bde9443cc 100644
--- a/xbmc/platform/win32/dirent.h
+++ b/xbmc/platform/win32/dirent.h
@@ -89,6 +89,9 @@
* May 28 1998, Toni Ronkko
* First version.
*****************************************************************************/
+
+#pragma once
+
#ifndef DIRENT_H
#define DIRENT_H
diff --git a/xbmc/platform/win32/my_ntddcdrm.h b/xbmc/platform/win32/my_ntddcdrm.h
index 09e185c89d..c65fe76529 100644
--- a/xbmc/platform/win32/my_ntddcdrm.h
+++ b/xbmc/platform/win32/my_ntddcdrm.h
@@ -21,6 +21,8 @@
*
*/
+#pragma once
+
#include <winioctl.h>
#define IOCTL_CDROM_BASE FILE_DEVICE_CD_ROM
@@ -40,4 +42,4 @@ typedef struct __RAW_READ_INFO
}
RAW_READ_INFO, *PRAW_READ_INFO;
-#endif \ No newline at end of file
+#endif
diff --git a/xbmc/platform/win32/my_ntddscsi.h b/xbmc/platform/win32/my_ntddscsi.h
index 5db2193355..8f56ee9246 100644
--- a/xbmc/platform/win32/my_ntddscsi.h
+++ b/xbmc/platform/win32/my_ntddscsi.h
@@ -21,6 +21,8 @@
*
*/
+#pragma once
+
//** Defines taken from ntddscsi.h in MS Windows DDK CD
#define SCSI_IOCTL_DATA_OUT 0 //Give data to SCSI device (e.g. for writing)
#define SCSI_IOCTL_DATA_IN 1 //Get data from SCSI device (e.g. for reading)
@@ -72,4 +74,4 @@ typedef struct _SCSI_PASS_THROUGH_DIRECT_AND_SENSE_BUFFER {
SCSI_PASS_THROUGH_DIRECT sptd;
UCHAR SenseBuf[MAX_SENSE_LEN];
}T_SPDT_SBUF;
-#endif \ No newline at end of file
+#endif
diff --git a/xbmc/platform/win32/network/NetworkWin32.h b/xbmc/platform/win32/network/NetworkWin32.h
index d40dfa619a..d8626cf4ce 100644
--- a/xbmc/platform/win32/network/NetworkWin32.h
+++ b/xbmc/platform/win32/network/NetworkWin32.h
@@ -17,6 +17,9 @@
* <http://www.gnu.org/licenses/>.
*
*/
+
+#pragma once
+
#ifndef NETWORK_LINUX_H_
#define NETWORK_LINUX_H_
diff --git a/xbmc/platform/win32/resource.h b/xbmc/platform/win32/resource.h
index 9537b6b804..a1f849f1eb 100644
--- a/xbmc/platform/win32/resource.h
+++ b/xbmc/platform/win32/resource.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#define IDI_MAIN_ICON 100
// Next default values for new objects
diff --git a/xbmc/platform/win32/utils/gpu_memcpy_sse4.h b/xbmc/platform/win32/utils/gpu_memcpy_sse4.h
index b5eb89896b..4e0cb9a254 100644
--- a/xbmc/platform/win32/utils/gpu_memcpy_sse4.h
+++ b/xbmc/platform/win32/utils/gpu_memcpy_sse4.h
@@ -19,6 +19,8 @@
* Taken from the QuickSync decoder by Eric Gur
*/
+#pragma once
+
#include <emmintrin.h>
#include <smmintrin.h>
@@ -126,4 +128,4 @@ inline void* gpu_memcpy(void* d, const void* s, size_t size)
}
return d;
-} \ No newline at end of file
+}
diff --git a/xbmc/powermanagement/DPMSSupport.h b/xbmc/powermanagement/DPMSSupport.h
index 76b6de8265..81b0e09198 100644
--- a/xbmc/powermanagement/DPMSSupport.h
+++ b/xbmc/powermanagement/DPMSSupport.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#ifndef DPMSSUPPORT_H
#define DPMSSUPPORT_H
diff --git a/xbmc/utils/BitstreamStats.h b/xbmc/utils/BitstreamStats.h
index 1dfebba7eb..8add00d52e 100644
--- a/xbmc/utils/BitstreamStats.h
+++ b/xbmc/utils/BitstreamStats.h
@@ -21,6 +21,8 @@
*
*/
+#pragma once
+
#include <string>
#ifdef TARGET_POSIX
#include "platform/linux/PlatformDefs.h"
diff --git a/xbmc/utils/CPUInfo.h b/xbmc/utils/CPUInfo.h
index 9f5b211637..41595e24c7 100644
--- a/xbmc/utils/CPUInfo.h
+++ b/xbmc/utils/CPUInfo.h
@@ -21,6 +21,8 @@
*
*/
+#pragma once
+
#include <stdio.h>
#include <time.h>
#include <string>
diff --git a/xbmc/utils/HttpParser.h b/xbmc/utils/HttpParser.h
index 7f59604bf8..c1fdd5f786 100644
--- a/xbmc/utils/HttpParser.h
+++ b/xbmc/utils/HttpParser.h
@@ -23,6 +23,8 @@
*
*/
+#pragma once
+
#ifndef HTTPPARSER_H_
#define HTTPPARSER_H_
#include <stdlib.h>
diff --git a/xbmc/utils/POUtils.h b/xbmc/utils/POUtils.h
index 61be7d0f69..e0d1db2437 100644
--- a/xbmc/utils/POUtils.h
+++ b/xbmc/utils/POUtils.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#include <string>
#include <vector>
#include <stdint.h>
diff --git a/xbmc/utils/ScraperParser.h b/xbmc/utils/ScraperParser.h
index be5c4488d3..c37f10fe18 100644
--- a/xbmc/utils/ScraperParser.h
+++ b/xbmc/utils/ScraperParser.h
@@ -21,6 +21,8 @@
*
*/
+#pragma once
+
#include <string>
#include <vector>
diff --git a/xbmc/utils/ScraperUrl.h b/xbmc/utils/ScraperUrl.h
index a05668233c..ad54455609 100644
--- a/xbmc/utils/ScraperUrl.h
+++ b/xbmc/utils/ScraperUrl.h
@@ -21,6 +21,8 @@
*
*/
+#pragma once
+
#include <vector>
#include <map>
#include <string>
diff --git a/xbmc/windowing/rpi/RPIUtils.h b/xbmc/windowing/rpi/RPIUtils.h
index 0791e5981a..919253a51d 100644
--- a/xbmc/windowing/rpi/RPIUtils.h
+++ b/xbmc/windowing/rpi/RPIUtils.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#include "platform/linux/RBP.h"
#include "EGL/egl.h"
#include <bcm_host.h>
diff --git a/xbmc/windowing/win10/WinSystemWin10DX.h b/xbmc/windowing/win10/WinSystemWin10DX.h
index 1504dbfa40..43496cec40 100644
--- a/xbmc/windowing/win10/WinSystemWin10DX.h
+++ b/xbmc/windowing/win10/WinSystemWin10DX.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#ifndef WIN_SYSTEM_WIN10_DX_H
#define WIN_SYSTEM_WIN10_DX_H
diff --git a/xbmc/windowing/windows/WinSystemWin32.h b/xbmc/windowing/windows/WinSystemWin32.h
index c5fa8fbc8d..0f587192a3 100644
--- a/xbmc/windowing/windows/WinSystemWin32.h
+++ b/xbmc/windowing/windows/WinSystemWin32.h
@@ -18,6 +18,8 @@
*
*/
+#pragma once
+
#ifndef WINDOW_SYSTEM_WIN32_H
#define WINDOW_SYSTEM_WIN32_H