Author: akhaldi
Date: Fri Feb 7 16:58:53 2014
New Revision: 62022
URL:
http://svn.reactos.org/svn/reactos?rev=62022&view=rev
Log:
[LIBS]
* Add header guards to the main headers.
CORE-7716
Modified:
trunk/reactos/lib/3rdparty/strmbase/strmbase_private.h
trunk/reactos/lib/cmlib/cmlib.h
trunk/reactos/lib/drivers/hidparser/parser.h
trunk/reactos/lib/drivers/ip/precomp.h
trunk/reactos/lib/drivers/sound/mmebuddy/precomp.h
trunk/reactos/lib/drivers/sound/mment4/precomp.h
trunk/reactos/lib/drivers/sound/mmixer/precomp.h
trunk/reactos/lib/epsapi/enum/precomp.h
trunk/reactos/lib/fslib/ext2lib/Mke2fs.h
trunk/reactos/lib/fslib/vfatlib/vfatlib.h
trunk/reactos/lib/fslib/vfatxlib/vfatxlib.h
trunk/reactos/lib/inflib/inflib.h
trunk/reactos/lib/recyclebin/recyclebin_private.h
trunk/reactos/lib/smlib/compses.c
trunk/reactos/lib/smlib/execpgm.c
trunk/reactos/lib/smlib/lookupss.c
trunk/reactos/lib/smlib/precomp.h
trunk/reactos/lib/smlib/smclient.c
Modified: trunk/reactos/lib/3rdparty/strmbase/strmbase_private.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/strmbase/strm…
==============================================================================
--- trunk/reactos/lib/3rdparty/strmbase/strmbase_private.h [iso-8859-1] (original)
+++ trunk/reactos/lib/3rdparty/strmbase/strmbase_private.h [iso-8859-1] Fri Feb 7
16:58:53 2014
@@ -17,6 +17,9 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+
+#ifndef _STRMBASE_PCH_
+#define _STRMBASE_PCH_
#include <wine/config.h>
@@ -73,3 +76,5 @@
void QualityControlRender_DoQOS(QualityControlImpl *priv);
void QualityControlRender_BeginRender(QualityControlImpl *This);
void QualityControlRender_EndRender(QualityControlImpl *This);
+
+#endif /* _STRMBASE_PCH_ */
Modified: trunk/reactos/lib/cmlib/cmlib.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/cmlib.h?rev=6202…
==============================================================================
--- trunk/reactos/lib/cmlib/cmlib.h [iso-8859-1] (original)
+++ trunk/reactos/lib/cmlib/cmlib.h [iso-8859-1] Fri Feb 7 16:58:53 2014
@@ -4,6 +4,9 @@
* COPYRIGHT: Copyright 2005 Filip Navara <navaraf(a)reactos.org>
* Copyright 2001 - 2005 Eric Kohl
*/
+
+#ifndef _CMLIB_H_
+#define _CMLIB_H_
//
// Debug support switch
@@ -406,3 +409,5 @@
ULONG CMAPI
HvpHiveHeaderChecksum(
PHBASE_BLOCK HiveHeader);
+
+#endif /* _CMLIB_H_ */
Modified: trunk/reactos/lib/drivers/hidparser/parser.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/hidparser/pars…
==============================================================================
--- trunk/reactos/lib/drivers/hidparser/parser.h [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/hidparser/parser.h [iso-8859-1] Fri Feb 7 16:58:53 2014
@@ -1,4 +1,5 @@
-#pragma once
+#ifndef _HIDPARSER_H_
+#define _HIDPARSER_H_
#include <wdm.h>
#include <pshpack1.h>
@@ -393,3 +394,5 @@
HidParser_GetReportInCollection(
IN PVOID Context,
IN UCHAR ReportType);
+
+#endif /* _HIDPARSER_H_ */
Modified: trunk/reactos/lib/drivers/ip/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/ip/precomp.h?r…
==============================================================================
--- trunk/reactos/lib/drivers/ip/precomp.h [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/ip/precomp.h [iso-8859-1] Fri Feb 7 16:58:53 2014
@@ -1,3 +1,6 @@
+#ifndef _IP_PCH_
+#define _IP_PCH_
+
#include <tags.h>
#include <tcpip.h>
#include <loopback.h>
@@ -17,3 +20,5 @@
#include <interface.h>
#include <ports.h>
#include <chew/chew.h>
+
+#endif /* _IP_PCH_ */
Modified: trunk/reactos/lib/drivers/sound/mmebuddy/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/sound/mmebuddy…
==============================================================================
--- trunk/reactos/lib/drivers/sound/mmebuddy/precomp.h [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/sound/mmebuddy/precomp.h [iso-8859-1] Fri Feb 7 16:58:53
2014
@@ -1,5 +1,10 @@
+#ifndef _MMEBUDDY_PCH_
+#define _MMEBUDDY_PCH_
+
#include <stdarg.h>
#include <windef.h>
#include <mmddk.h>
#include <sndtypes.h>
#include <mmebuddy.h>
+
+#endif /* _MMEBUDDY_PCH_ */
Modified: trunk/reactos/lib/drivers/sound/mment4/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/sound/mment4/p…
==============================================================================
--- trunk/reactos/lib/drivers/sound/mment4/precomp.h [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/sound/mment4/precomp.h [iso-8859-1] Fri Feb 7 16:58:53
2014
@@ -1,3 +1,6 @@
+#ifndef _MMENT4_PCH_
+#define _MMENT4_PCH_
+
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
@@ -7,3 +10,5 @@
#include <sndnames.h>
#include <sndtypes.h>
#include <mmebuddy.h>
+
+#endif /* _MMENT4_PCH_ */
Modified: trunk/reactos/lib/drivers/sound/mmixer/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/sound/mmixer/p…
==============================================================================
--- trunk/reactos/lib/drivers/sound/mmixer/precomp.h [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/sound/mmixer/precomp.h [iso-8859-1] Fri Feb 7 16:58:53
2014
@@ -1,3 +1,6 @@
+#ifndef _MMIXER_PCH_
+#define _MMIXER_PCH_
+
#include <wdm.h>
#include <windef.h>
#define NOBITMAP
@@ -518,3 +521,5 @@
VOID
MMixerPrintTopology();
+
+#endif /* _MMIXER_PCH_ */
Modified: trunk/reactos/lib/epsapi/enum/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/epsapi/enum/precomp.h?…
==============================================================================
--- trunk/reactos/lib/epsapi/enum/precomp.h [iso-8859-1] (original)
+++ trunk/reactos/lib/epsapi/enum/precomp.h [iso-8859-1] Fri Feb 7 16:58:53 2014
@@ -1,4 +1,9 @@
+#ifndef _EPSAPI_PCH_
+#define _EPSAPI_PCH_
+
#define NTOS_MODE_USER
#include <ndk/exfuncs.h>
#include <epsapi/epsapi.h>
+
+#endif /* _EPSAPI_PCH_ */
Modified: trunk/reactos/lib/fslib/ext2lib/Mke2fs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/ext2lib/Mke2fs.h…
==============================================================================
--- trunk/reactos/lib/fslib/ext2lib/Mke2fs.h [iso-8859-1] (original)
+++ trunk/reactos/lib/fslib/ext2lib/Mke2fs.h [iso-8859-1] Fri Feb 7 16:58:53 2014
@@ -4,6 +4,9 @@
* PROGRAMMER: Matt Wu <mattwu(a)163.com>
* HOMEPAGE:
http://ext2.yeah.net
*/
+
+#ifndef _MKE2FS_H_
+#define _MKE2FS_H_
/* INCLUDES **************************************************************/
@@ -393,3 +396,5 @@
*/
void uuid_generate(__u8 * uuid);
+
+#endif /* _MKE2FS_H_ */
Modified: trunk/reactos/lib/fslib/vfatlib/vfatlib.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/vfatlib/vfatlib.…
==============================================================================
--- trunk/reactos/lib/fslib/vfatlib/vfatlib.h [iso-8859-1] (original)
+++ trunk/reactos/lib/fslib/vfatlib/vfatlib.h [iso-8859-1] Fri Feb 7 16:58:53 2014
@@ -3,6 +3,9 @@
* PROJECT: ReactOS VFAT filesystem library
* FILE: vfatlib.h
*/
+
+#ifndef _VFATLIB_H_
+#define _VFATLIB_H_
#include <stdio.h>
@@ -145,4 +148,6 @@
VOID
VfatPrint(PCHAR Format, ...);
+#endif /* _VFATLIB_H_ */
+
/* EOF */
Modified: trunk/reactos/lib/fslib/vfatxlib/vfatxlib.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/vfatxlib/vfatxli…
==============================================================================
--- trunk/reactos/lib/fslib/vfatxlib/vfatxlib.h [iso-8859-1] (original)
+++ trunk/reactos/lib/fslib/vfatxlib/vfatxlib.h [iso-8859-1] Fri Feb 7 16:58:53 2014
@@ -3,6 +3,9 @@
* PROJECT: ReactOS VFAT filesystem library
* FILE: vfatxlib.h
*/
+
+#ifndef _VFATXLIB_H_
+#define _VFATXLIB_H_
#define NTOS_MODE_USER
#include <ndk/umtypes.h>
@@ -45,4 +48,6 @@
VfatxUpdateProgress (PFORMAT_CONTEXT Context,
ULONG Increment);
+#endif /* _VFATXLIB_H_ */
+
/* EOF */
Modified: trunk/reactos/lib/inflib/inflib.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/inflib/inflib.h?rev=62…
==============================================================================
--- trunk/reactos/lib/inflib/inflib.h [iso-8859-1] (original)
+++ trunk/reactos/lib/inflib/inflib.h [iso-8859-1] Fri Feb 7 16:58:53 2014
@@ -3,6 +3,9 @@
* LICENSE: GPL - See COPYING in the top level directory
* COPYRIGHT: Copyright 2005 Ge van Geldorp <gvg(a)reactos.org>
*/
+
+#ifndef _INFLIB_PCH_
+#define _INFLIB_PCH_
#include <ctype.h>
#include <stddef.h>
@@ -12,4 +15,4 @@
#include "infcommon.h"
#include "infpriv.h"
-/* EOF */
+#endif /* _INFLIB_PCH_ */
Modified: trunk/reactos/lib/recyclebin/recyclebin_private.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/recyclebin/recyclebin_…
==============================================================================
--- trunk/reactos/lib/recyclebin/recyclebin_private.h [iso-8859-1] (original)
+++ trunk/reactos/lib/recyclebin/recyclebin_private.h [iso-8859-1] Fri Feb 7 16:58:53
2014
@@ -1,3 +1,6 @@
+#ifndef _RECYCLEBIN_PRIVATE_H_
+#define _RECYCLEBIN_PRIVATE_H_
+
#include <stdio.h>
#define COBJMACROS
@@ -44,3 +47,5 @@
/* recyclebin_v5.c */
HRESULT RecycleBin5_Constructor(IN LPCWSTR VolumePath, OUT IUnknown **ppUnknown);
+
+#endif /* _RECYCLEBIN_PRIVATE_H_ */
Modified: trunk/reactos/lib/smlib/compses.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/smlib/compses.c?rev=62…
==============================================================================
--- trunk/reactos/lib/smlib/compses.c [iso-8859-1] (original)
+++ trunk/reactos/lib/smlib/compses.c [iso-8859-1] Fri Feb 7 16:58:53 2014
@@ -4,6 +4,7 @@
* FILE: lib/smlib/compses.c
* PURPOSE: Call SM API SM_API_COMPLETE_SESSION
*/
+
#include "precomp.h"
#define NDEBUG
Modified: trunk/reactos/lib/smlib/execpgm.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/smlib/execpgm.c?rev=62…
==============================================================================
--- trunk/reactos/lib/smlib/execpgm.c [iso-8859-1] (original)
+++ trunk/reactos/lib/smlib/execpgm.c [iso-8859-1] Fri Feb 7 16:58:53 2014
@@ -4,6 +4,7 @@
* FILE: lib/smlib/execpgm.c
* PURPOSE: Call SM API SM_API_EXECPGM
*/
+
#include "precomp.h"
#define NDEBUG
Modified: trunk/reactos/lib/smlib/lookupss.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/smlib/lookupss.c?rev=6…
==============================================================================
--- trunk/reactos/lib/smlib/lookupss.c [iso-8859-1] (original)
+++ trunk/reactos/lib/smlib/lookupss.c [iso-8859-1] Fri Feb 7 16:58:53 2014
@@ -3,6 +3,7 @@
* PROJECT: ReactOS system libraries
* FILE: lib/smlib/lookupss.c
*/
+
#include "precomp.h"
#define NDEBUG
Modified: trunk/reactos/lib/smlib/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/smlib/precomp.h?rev=62…
==============================================================================
--- trunk/reactos/lib/smlib/precomp.h [iso-8859-1] (original)
+++ trunk/reactos/lib/smlib/precomp.h [iso-8859-1] Fri Feb 7 16:58:53 2014
@@ -6,9 +6,9 @@
* PROGRAMMER: Alex Ionescu (alex(a)relsoft.net)
*/
-/* INCLUDES ******************************************************************/
+#ifndef _SMLIB_PCH_
+#define _SMLIB_PCH_
-/* SDK/DDK/NDK Headers. */
#define WIN32_NO_STATUS
#include <windef.h>
#include <winreg.h>
@@ -21,3 +21,4 @@
#include <sm/helper.h>
+#endif /* _SMLIB_PCH_ */
Modified: trunk/reactos/lib/smlib/smclient.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/smlib/smclient.c?rev=6…
==============================================================================
--- trunk/reactos/lib/smlib/smclient.c [iso-8859-1] (original)
+++ trunk/reactos/lib/smlib/smclient.c [iso-8859-1] Fri Feb 7 16:58:53 2014
@@ -9,9 +9,10 @@
/* INCLUDES *******************************************************************/
#include "precomp.h"
-#include "sm/smmsg.h" // To go in precomp.h after
+#include <sm/smmsg.h> // To go in precomp.h after
+
#define NDEBUG
-#include "debug.h"
+#include <debug.h>
/* FUNCTIONS ******************************************************************/