[DRIVERS]
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 6 Feb 2014 11:18:34 +0000 (11:18 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 6 Feb 2014 11:18:34 +0000 (11:18 +0000)
* Add header guards to the main headers.
CORE-7716

svn path=/trunk/; revision=62006

80 files changed:
reactos/drivers/base/bootvid/precomp.h
reactos/drivers/base/kdcom/kddll.h
reactos/drivers/bus/acpi/cmbatt/cmbatt.h
reactos/drivers/bus/acpi/compbatt/compbatt.h
reactos/drivers/bus/isapnp/fdo.c
reactos/drivers/bus/isapnp/hardware.c
reactos/drivers/bus/isapnp/isapnp.c
reactos/drivers/bus/isapnp/isapnp.h
reactos/drivers/bus/isapnp/pdo.c
reactos/drivers/bus/pci/pci.h
reactos/drivers/bus/pcix/pci.h
reactos/drivers/bus/pcmcia/fdo.c
reactos/drivers/bus/pcmcia/pcmcia.h
reactos/drivers/bus/pcmcia/pdo.c
reactos/drivers/filesystems/cdfs/cleanup.c
reactos/drivers/filesystems/cdfs/close.c
reactos/drivers/filesystems/fastfat/fastio.c
reactos/drivers/filesystems/fastfat/fcb.c
reactos/drivers/filesystems/fastfat/misc.c
reactos/drivers/filesystems/fastfat/rw.c
reactos/drivers/filesystems/fs_rec/fs_rec.h
reactos/drivers/filesystems/mup/mup.c
reactos/drivers/hid/hidclass/precomp.h
reactos/drivers/input/kbdclass/kbdclass.h
reactos/drivers/input/mouclass/mouclass.h
reactos/drivers/input/sermouse/sermouse.h
reactos/drivers/ksfilter/ks/precomp.h
reactos/drivers/network/dd/ne2000/include/ne2000.h
reactos/drivers/network/dd/ne2000/ne2000/8390.c
reactos/drivers/network/dd/ne2000/ne2000/main.c
reactos/drivers/network/dd/pcnet/pcnet.c
reactos/drivers/network/dd/pcnet/pcnet.h
reactos/drivers/network/dd/pcnet/requests.c
reactos/drivers/network/dd/rtl8139/info.c
reactos/drivers/network/dd/rtl8139/interrupt.c
reactos/drivers/network/dd/rtl8139/ndis.c
reactos/drivers/network/dd/rtl8139/nic.h
reactos/drivers/network/ndisuio/createclose.c
reactos/drivers/network/ndisuio/protocol.c
reactos/drivers/network/ndisuio/readwrite.c
reactos/drivers/network/tcpip/include/checksum.h
reactos/drivers/network/tcpip/include/interface.h
reactos/drivers/network/tcpip/include/precomp.h
reactos/drivers/network/tcpip/include/transmit.h
reactos/drivers/network/tcpip/tcpip/iinfo.c
reactos/drivers/network/tcpip/tcpip/info.c
reactos/drivers/network/tcpip/tcpip/lock.c
reactos/drivers/network/tcpip/tcpip/mocklock.c
reactos/drivers/network/tcpip/tcpip/mockwait.c
reactos/drivers/network/tcpip/tcpip/ninfo.c
reactos/drivers/network/tcpip/tcpip/proto.c
reactos/drivers/network/tcpip/tcpip/wait.c
reactos/drivers/network/tdi/cte/string.c
reactos/drivers/network/tdi/misc/main.c
reactos/drivers/network/tdi/tdi/handler.c
reactos/drivers/network/tdi/tdi/obsolete.c
reactos/drivers/network/tdi/tdi/stubs.c
reactos/drivers/sac/driver/sacdrv.h
reactos/drivers/serial/serenum/serenum.h
reactos/drivers/serial/serial/serial.h
reactos/drivers/setup/blue/blue.h
reactos/drivers/storage/class/cdrom/precomp.h
reactos/drivers/storage/class/disk_new/disk.h
reactos/drivers/storage/class/include/class2.h
reactos/drivers/storage/classpnp/classp.h
reactos/drivers/storage/fdc/fdc/fdc.h
reactos/drivers/storage/floppy/precomp.h
reactos/drivers/storage/ide/pciidex/pciidex.h
reactos/drivers/storage/scsiport/precomp.h
reactos/drivers/usb/usbhub/usbhub.h
reactos/drivers/usb/usbstor/descriptor.c
reactos/drivers/usb/usbstor/misc.c
reactos/drivers/usb/usbstor/usbstor.c
reactos/drivers/usb/usbstor/usbstor.h
reactos/drivers/wdm/audio/filters/kmixer/kmixer.h
reactos/drivers/wdm/audio/legacy/wdmaud/deviface.c
reactos/drivers/wdm/audio/legacy/wdmaud/mmixer.c
reactos/drivers/wdm/audio/legacy/wdmaud/wdmaud.h
reactos/drivers/wdm/audio/sysaudio/deviface.c
reactos/drivers/wdm/audio/sysaudio/sysaudio.h

index 8b76775..f61e41c 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef _BOOTVID_PCH_
+#define _BOOTVID_PCH_
+
 #include <wdm.h>
 #include <drivers/bootvid/bootvid.h>
 
@@ -41,3 +44,5 @@ extern ULONG curr_y;
 extern ULONG_PTR VgaRegisterBase;
 extern ULONG_PTR VgaBase;
 extern UCHAR FontData[256 * BOOTCHAR_HEIGHT];
+
+#endif /* _BOOTVID_PCH_ */
index 70c6c92..7353689 100644 (file)
@@ -6,6 +6,9 @@
  * PROGRAMMER:      Timo Kreuzer (timo.kreuzer@ewactos.org)
  */
 
+#ifndef _KDDLL_H_
+#define _KDDLL_H_
+
 #define NOEXTAPI
 #include <ntifs.h>
 #include <windbgkd.h>
@@ -61,4 +64,4 @@ KDP_STATUS
 NTAPI
 KdpPollBreakIn(VOID);
 
-/* EOF */
+#endif /* _KDDLL_H_ */
index 1d17279..c1f0841 100644 (file)
@@ -6,6 +6,9 @@
  * PROGRAMMERS:     ReactOS Portable Systems Group
  */
 
+#ifndef _CMBATT_PCH_
+#define _CMBATT_PCH_
+
 #include <wdm.h>
 #include <batclass.h>
 #include <wmilib.h>
@@ -276,4 +279,4 @@ CmBattQueryTag(
 extern PDEVICE_OBJECT AcAdapterPdo;
 extern ULONG CmBattDebug;
 
-/* EOF */
+#endif /* _CMBATT_PCH_ */
index 7bb4efd..0c31fdb 100644 (file)
@@ -6,6 +6,9 @@
  * PROGRAMMERS:     ReactOS Portable Systems Group
  */
 
+#ifndef _COMPBATT_PCH_
+#define _COMPBATT_PCH_
+
 #include <wdm.h>
 #include <batclass.h>
 
@@ -149,7 +152,7 @@ BatteryIoctl(
     IN ULONG OutputBufferLength,
     IN BOOLEAN InternalDeviceIoControl
 );
-                               
+
 extern ULONG CompBattDebug;
 
-/* EOF */
+#endif /* _COMPBATT_PCH_ */
index d369a19..c0a5eb9 100644 (file)
@@ -4,6 +4,7 @@
  * PURPOSE:         FDO-specific code
  * PROGRAMMERS:     Cameron Gutman (cameron.gutman@reactos.org)
  */
+
 #include <isapnp.h>
 
 #define NDEBUG
index 9eb2c75..c578270 100644 (file)
@@ -4,6 +4,7 @@
  * PURPOSE:         Hardware support code
  * PROGRAMMERS:     Cameron Gutman (cameron.gutman@reactos.org)
  */
+
 #include <isapnp.h>
 #include <isapnphw.h>
 
index 6767482..ae94622 100644 (file)
@@ -4,6 +4,7 @@
  * PURPOSE:         Driver entry
  * PROGRAMMERS:     Cameron Gutman (cameron.gutman@reactos.org)
  */
+
 #include <isapnp.h>
 
 #define NDEBUG
index 85aa43f..04c10bd 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef _ISAPNP_PCH_
+#define _ISAPNP_PCH_
 
 #include <wdm.h>
 
@@ -95,3 +97,5 @@ IsaHwActivateDevice(
 #ifdef __cplusplus
 }
 #endif
+
+#endif /* _ISAPNP_PCH_ */
index 0292f20..aec13d8 100644 (file)
@@ -4,6 +4,7 @@
  * PURPOSE:         PDO-specific code
  * PROGRAMMERS:     Cameron Gutman (cameron.gutman@reactos.org)
  */
+
 #include <isapnp.h>
 
 #define NDEBUG
index 5ae4728..f3394c7 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef _PCI_PCH_
+#define _PCI_PCH_
+
 #include <ntifs.h>
 
 #define TAG_PCI '0ICP'
@@ -174,3 +177,5 @@ NTAPI
 DriverEntry(
     IN PDRIVER_OBJECT DriverObject,
     IN PUNICODE_STRING RegistryPath);
+
+#endif /* _PCI_PCH_ */
index b8cb9d0..52b6fd5 100644 (file)
@@ -6,6 +6,9 @@
  * PROGRAMMERS:     ReactOS Portable Systems Group
  */
 
+#ifndef _PCIX_PCH_
+#define _PCIX_PCH_
+
 #include <ntifs.h>
 #include <wdmguid.h>
 #include <wchar.h>
@@ -1822,4 +1825,4 @@ extern BOOLEAN PciRunningDatacenter;
 /* Exported by NTOS, should this go in the NDK? */
 extern NTSYSAPI BOOLEAN InitSafeBootMode;
 
-/* EOF */
+#endif /* _PCIX_PCH_ */
index 30c4cdf..53f2a4d 100644 (file)
@@ -24,4 +24,3 @@ PcmciaFdoPlugPlay(PPCMCIA_FDO_EXTENSION FdoExt,
 
     return STATUS_NOT_SUPPORTED;
 }
-
index 56690c2..254784f 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef _PCMCIA_PCH_
+#define _PCMCIA_PCH_
+
 #include <wdm.h>
 
 typedef enum
@@ -48,3 +51,4 @@ NTAPI
 PcmciaFdoPlugPlay(PPCMCIA_FDO_EXTENSION FdoExt,
                   PIRP Irp);
 
+#endif /* _PCMCIA_PCH_ */
index bb2af29..bf7d9ac 100644 (file)
@@ -35,4 +35,3 @@ PcmciaPdoSetPowerState(PPCMCIA_PDO_EXTENSION PdoExt)
 
     return STATUS_SUCCESS;
 }
-
index 4a6e148..074defc 100644 (file)
@@ -739,4 +739,3 @@ VfatInitFastIoRoutines(
     FastIoDispatch->AcquireForCcFlush = VfatAcquireForCcFlush;
     FastIoDispatch->ReleaseForCcFlush = VfatReleaseForCcFlush;
 }
-
index 1477dd7..7cdd511 100644 (file)
@@ -1059,4 +1059,3 @@ ByeBye:
     DPRINT("%x\n", Status);
     return Status;
 }
-
index fc25efc..e66d588 100644 (file)
@@ -7,6 +7,9 @@
  *                   Eric Kohl
  */
 
+#ifndef _FS_REC_H
+#define _FS_REC_H
+
 #include <ntifs.h>
 
 /* Tag for memory allocations */
@@ -255,3 +258,5 @@ FsRecLoadFileSystem(
     IN PDEVICE_OBJECT DeviceObject,
     IN PWCHAR DriverServiceName
 );
+
+#endif /* _FS_REC_H */
index 41faf83..0b565b0 100644 (file)
@@ -31,9 +31,6 @@
 #define NDEBUG
 #include <debug.h>
 
-/* GLOBALS *****************************************************************/
-
-
 /* FUNCTIONS ****************************************************************/
 
 /*
@@ -100,4 +97,3 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
 
     return STATUS_SUCCESS;
 }
-
index 37afc2a..afaa571 100644 (file)
@@ -1,4 +1,5 @@
-#pragma once
+#ifndef _HIDCLASS_PCH_
+#define _HIDCLASS_PCH_
 
 #define _HIDPI_NO_FUNCTION_MACROS_
 #include <wdm.h>
@@ -212,4 +213,4 @@ HidClassPDO_GetReportDescription(
     PHIDP_DEVICE_DESC DeviceDescription,
     ULONG CollectionNumber);
 
-/* eof */
+#endif /* _HIDCLASS_PCH_ */
index 6c40fd9..6041dad 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef _KBDCLASS_PCH_
+#define _KBDCLASS_PCH_
+
 #include <ntifs.h>
 #include <ntddkbd.h>
 
@@ -76,3 +79,5 @@ DuplicateUnicodeString(
        IN ULONG Flags,
        IN PCUNICODE_STRING SourceString,
        OUT PUNICODE_STRING DestinationString);
+
+#endif /* _KBDCLASS_PCH_ */
index d69402a..fcc8775 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef _MOUCLASS_PCH_
+#define _MOUCLASS_PCH_
+
 #include <ntifs.h>
 #include <ntddmou.h>
 
@@ -76,3 +79,5 @@ DuplicateUnicodeString(
        IN ULONG Flags,
        IN PCUNICODE_STRING SourceString,
        OUT PUNICODE_STRING DestinationString);
+
+#endif /* _MOUCLASS_PCH_ */
index 696bb17..7cbd05c 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef _SERMOUSE_PCH_
+#define _SERMOUSE_PCH_
+
 #include <ntddk.h>
 #include <ntddser.h>
 #include <kbdmou.h>
@@ -110,3 +113,5 @@ ForwardIrpAndForget(
 VOID NTAPI
 SermouseDeviceWorker(
        PVOID Context);
+
+#endif /* _SERMOUSE_PCH_ */
index 73376d9..09f3516 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef _KS_PCH_
+#define _KS_PCH_
+
 #define _KSDDK_
 
 #include <ntddk.h>
@@ -45,3 +48,5 @@ DEFINE_KSPROPERTY_TABLE(PinSet) {\
     DEFINE_KSPROPERTY_ITEM_STREAM_MASTERCLOCK(PropMasterClock, PropMasterClock),\
     DEFINE_KSPROPERTY_ITEM_STREAM_PIPE_ID(PropPipeId, PropPipeId)\
 }
+
+#endif /* _KS_PCH_ */
index 3acb69b..d3b900e 100644 (file)
@@ -5,12 +5,16 @@
  * PURPOSE:     NE2000 driver definitions
  */
 
+#ifndef _NE2000_PCH_
+#define _NE2000_PCH_
+
 #define NDIS_MINIPORT_DRIVER 1
 #define NDIS_LEGACY_MINIPORT 1
 #define NDIS51_MINIPORT 1
 #include <ndis.h>
 #include <8390.h>
-#include <debug.h>
+
+#include "debug.h"
 
 /* Define NOCARD to test NDIS without a card */
 //#define NOCARD
@@ -244,4 +248,4 @@ VOID NICWriteData(
 VOID NICTransmit(
     PNIC_ADAPTER Adapter);
 
-/* EOF */
+#endif /* _NE2000_PCH_ */
index 3ef4f91..2b759c5 100644 (file)
@@ -7,6 +7,7 @@
  * REVISIONS:
  *   CSH 27/08-2000 Created
  */
+
 #include <ne2000.h>
 
 /* Null-terminated array of ports to probe. This is "semi-risky" (Don Becker).  */
index 09cf473..b93200d 100644 (file)
@@ -7,6 +7,7 @@
  * REVISIONS:
  *   CSH 27/08-2000 Created
  */
+
 #include <ne2000.h>
 
 NTSTATUS
@@ -1055,4 +1056,5 @@ DriverEntry(
         }
 
 #endif
+
 /* EOF */
index 4dc6a8a..efa7d96 100644 (file)
  *     - this assumes 32-bit physical addresses
  */
 
+#ifndef _PCNET_PCH_
+#define _PCNET_PCH_
+
 #include <ndis.h>
+
 #include "pci.h"
 #include "pcnethw.h"
 
@@ -159,3 +163,5 @@ MiGetMediaDuplex(PADAPTER Adapter);
 
 /* memory pool tag */
 #define PCNET_TAG 'tNcP'
+
+#endif /* _PCNET_PCH_ */
index 659e72d..38da621 100644 (file)
@@ -215,4 +215,3 @@ MiniportHandleInterrupt (
     
     NdisDprReleaseSpinLock(&adapter->Lock);
 }
-
index bbd724a..ecadc4d 100644 (file)
@@ -5,8 +5,12 @@
  * PURPOSE:     RTL8139 driver definitions
  */
 
+#ifndef _RTL8139_PCH_
+#define _RTL8139_PCH_
+
 #include <ndis.h>
-#include <rtlhw.h>
+
+#include "rtlhw.h"
 
 #define ADAPTER_TAG 'Altr'
 #define RESOURCE_LIST_TAG 'Rltr'
@@ -202,4 +206,4 @@ MiniportHandleInterrupt (
     IN NDIS_HANDLE MiniportAdapterContext
     );
 
-/* EOF */
+#endif /* _RTL8139_PCH_ */
index d0fe7af..00ea79c 100644 (file)
@@ -66,4 +66,4 @@ NduDispatchClose(PDEVICE_OBJECT DeviceObject,
 
     /* Return success */
     return STATUS_SUCCESS;
-}
\ No newline at end of file
+}
index 4b8fe31..76417b7 100644 (file)
@@ -493,4 +493,3 @@ NduUnbindAdapter(PNDIS_STATUS Status,
      * invalidating file handles pointer to this adapter for us */
     *Status = UnbindAdapterByContext(ProtocolBindingContext);
 }
-
index ceae632..5294c14 100644 (file)
@@ -206,4 +206,4 @@ NduDispatchWrite(PDEVICE_OBJECT DeviceObject,
     IoCompleteRequest(Irp, IO_NETWORK_INCREMENT);
 
     return Status;
-}
\ No newline at end of file
+}
index d3d9cc6..e40a07c 100644 (file)
@@ -1,7 +1,5 @@
 #pragma once
 
-#include <ip.h>
-
 #define IFENT_SOFTWARE_LOOPBACK 24 /* This is an SNMP constant from rfc1213 */
 
 NTSTATUS GetInterfaceIPv4Address( PIP_INTERFACE Interface,
@@ -15,4 +13,4 @@ NTSTATUS GetInterfaceName( PIP_INTERFACE Interface, PCHAR NameBuffer,
 NTSTATUS GetInterfaceConnectionStatus( PIP_INTERFACE Interface,
                                        PULONG OperStatus );
 PIP_INTERFACE FindOnLinkInterface(PIP_ADDRESS Address);
-PIP_INTERFACE GetDefaultInterface(VOID);
\ No newline at end of file
+PIP_INTERFACE GetDefaultInterface(VOID);
index 6d830f7..b2cb750 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef _TCPIP_PCH_
+#define _TCPIP_PCH_
+
 #include <tags.h>
 #include <tcpip.h>
 #include <loopback.h>
@@ -13,3 +16,5 @@
 #include <lock.h>
 #include <interface.h>
 #include <chew/chew.h>
+
+#endif /* _TCPIP_PCH_ */
index 62b69d3..e54308e 100644 (file)
@@ -31,4 +31,5 @@ typedef struct IPFRAGMENT_CONTEXT {
 
 
 NTSTATUS IPSendDatagram(PIP_PACKET IPPacket, PNEIGHBOR_CACHE_ENTRY NCE);
+
 /* EOF */
index d3984aa..5730679 100644 (file)
@@ -175,4 +175,3 @@ VOID RemoveTDIInterfaceEntity( PIP_INTERFACE Interface ) {
     /* This removes all of them */
     RemoveEntityByContext(Interface);
 }
-
index 6970615..ac4174f 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include "precomp.h"
+
 #include <debug.h>
 
 VOID AddEntity(ULONG EntityType, PVOID Context, ULONG Flags)
index 9a6cdc9..596c49a 100644 (file)
@@ -6,6 +6,7 @@
  * PROGRAMMERS: Art Yerkes
  * REVISIONS:
  */
+
 #include "precomp.h"
 
 KIRQL TcpipGetCurrentIrql() { return KeGetCurrentIrql(); }
@@ -43,4 +44,3 @@ VOID TcpipAcquireFastMutex( PFAST_MUTEX Mutex ) {
 VOID TcpipReleaseFastMutex( PFAST_MUTEX Mutex ) {
     ExReleaseFastMutex( Mutex );
 }
-
index 0aa957c..8a12d86 100644 (file)
@@ -6,6 +6,7 @@
  * PROGRAMMERS: Art Yerkes
  * REVISIONS:
  */
+
 #include "precomp.h"
 
 KIRQL KernelIrql = PASSIVE_LEVEL;
@@ -44,4 +45,3 @@ VOID TcpipAcquireFastMutex( PFAST_MUTEX Mutex ) {
 
 VOID TcpipReleaseFastMutex( PFAST_MUTEX Mutex ) {
 }
-
index e884df6..26dda60 100644 (file)
@@ -6,6 +6,7 @@
  * PROGRAMMERS: Art Yerkes
  * REVISIONS:
  */
+
 #include "precomp.h"
 
 NTSTATUS TcpipWaitForSingleObject( PVOID Object,
index f78d4b4..40710cc 100644 (file)
@@ -13,8 +13,6 @@
 #define IP_ROUTE_TYPE_ADD 3
 #define IP_ROUTE_TYPE_DEL 2
 
-
-
 /* Get IPRouteEntry s for each of the routes in the system */
 TDI_STATUS InfoTdiQueryGetRouteTable( PIP_INTERFACE IF, PNDIS_BUFFER Buffer, PUINT BufferSize ) {
     TDI_STATUS Status;
@@ -214,4 +212,3 @@ TDI_STATUS InfoTdiSetRoute(PIP_INTERFACE IF, PVOID Buffer, UINT BufferSize)
 
      return TDI_INVALID_REQUEST;
 }
-
index dbb1b93..7da943d 100644 (file)
@@ -6,6 +6,7 @@
  * PROGRAMMERS: Art Yerkes
  * REVISIONS:
  */
+
 #include "precomp.h"
 
 NTSTATUS TcpipWaitForSingleObject( PVOID Object,
index bcbf6ed..d6b7d26 100644 (file)
@@ -2,6 +2,7 @@
  * DESCRIPTION: Entry point for TDI.SYS
  * (c) Captain Obvious
  */
+
 #include "precomp.h"
 
 extern LONG CteTimeIncrement;
@@ -17,6 +18,4 @@ DriverEntry(IN PDRIVER_OBJECT DriverObject,
     return STATUS_SUCCESS;
 }
 
-
-
 /* EOF */
index 7a64e3f..ced6e5f 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * DESCRIPTION: Default TDI event handlers.
  */
+
 #include "precomp.h"
 
 /*
index b844d17..900768b 100644 (file)
@@ -6,6 +6,9 @@
  * PROGRAMMERS: ReactOS Portable Systems Group
  */
 
+#ifndef _SACDRV_H_
+#define _SACDRV_H_
+
 /* INCLUDES *******************************************************************/
 
 #include <ntifs.h>
@@ -1511,3 +1514,5 @@ typedef enum _VT_ANSI_ATTRIBUTES
 #define VT_ANSI_HVP_CURSOR_CHAR     L'f'
 #define VT_ANSI_CUP_CURSOR_CHAR     L'H'
 #define VT_ANSI_SCROLL_CHAR         L'r'
+
+#endif /* _SACDRV_H_ */
index 2383760..56361a2 100644 (file)
@@ -7,6 +7,9 @@
  * PROGRAMMERS:     HervĂ© Poussineau (hpoussin@reactos.org)
  */
 
+#ifndef _SERENUM_PCH_
+#define _SERENUM_PCH_
+
 #include <ntifs.h>
 #include <ntddser.h>
 
@@ -124,3 +127,5 @@ NTSTATUS NTAPI
 DriverEntry(
        IN PDRIVER_OBJECT DriverObject,
        IN PUNICODE_STRING RegPath);
+
+#endif /* _SERENUM_PCH_ */
index 6d878c2..ad7011d 100644 (file)
@@ -7,6 +7,9 @@
  * PROGRAMMERS:     HervĂ© Poussineau (hpoussin@reactos.org)
  */
 
+#ifndef _SERIAL_PCH_
+#define _SERIAL_PCH_
+
 #include <ntddk.h>
 #include <ntddser.h>
 
@@ -297,3 +300,5 @@ DRIVER_DISPATCH SerialPower;
 
 DRIVER_DISPATCH SerialRead;
 DRIVER_DISPATCH SerialWrite;
+
+#endif /* _SERIAL_PCH_ */
index 83639db..a137f8f 100644 (file)
@@ -6,6 +6,9 @@
  * PROGRAMMERS:     Aleksey Bragin (aleksey@reactos.org)
  */
 
+#ifndef _BLUE_PCH_
+#define _BLUE_PCH_
+
 #include <wdm.h>
 
 typedef struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES;
@@ -129,3 +132,5 @@ typedef struct _CFFILE
 
 void ScrLoadFontTable(UINT32 CodePage);
 NTSTATUS ExtractFont(UINT32 CodePage, PUCHAR FontBitField);
+
+#endif /* _BLUE_PCH_ */
index 064d914..25e00ea 100644 (file)
@@ -1,2 +1,7 @@
+#ifndef _CDROM_PCH_
+#define _CDROM_PCH_
+
 #include <ntdef.h>
 #include <ntstatus.h>
+
+#endif /* _CDROM_PCH_ */
index d7bc16a..f47d41b 100644 (file)
@@ -20,6 +20,9 @@ Revision History:
 
 --*/
 
+#ifndef _DISK_NEW_H_
+#define _DISK_NEW_H_
+
 #undef _WIN32_WINNT
 #define _WIN32_WINNT 0x0501
 #define NTDDI_VERSION NTDDI_WINXP
@@ -975,3 +978,5 @@ DiskReadSignature(
 
 
 #define DiskHashGuid(Guid) (((PULONG) &Guid)[0] ^ ((PULONG) &Guid)[0] ^ ((PULONG) &Guid)[0] ^ ((PULONG) &Guid)[0])
+
+#endif /* _DISK_NEW_H_ */
index b967c3d..047e48d 100644 (file)
@@ -8,8 +8,8 @@
 
 #pragma once
 
-#include "ntddscsi.h"
-#include "srb.h"
+#include <ntddscsi.h>
+#include <srb.h>
 
 #define MAXIMUM_RETRIES    15
 #define RETRY_WAIT         2000000 /* 200 ms in units of 100 ns */
index 7ae9436..59a2949 100644 (file)
@@ -25,6 +25,9 @@ Revision History:
 
 --*/
 
+#ifndef _CLASSPNP_PCH_
+#define _CLASSPNP_PCH_
+
 #include <ntddk.h>
 #include <classpnp.h>
 #include <ioevent.h>
@@ -865,3 +868,5 @@ NTSTATUS NTAPI InitializeTransferPackets(PDEVICE_OBJECT Fdo);
 VOID NTAPI DestroyAllTransferPackets(PDEVICE_OBJECT Fdo);
 
 #include "debug.h"
+
+#endif /* _CLASSPNP_PCH_ */
index 4a2ed0c..9911832 100644 (file)
@@ -6,6 +6,9 @@
  * PROGRAMMERS:    Eric Kohl
  */
 
+#ifndef _FDC_PCH_
+#define _FDC_PCH_
+
 #include <ntifs.h>
 
 #define MAX_DEVICE_NAME 255
@@ -121,3 +124,5 @@ NTAPI
 FdcPdoPnp(
     IN PDEVICE_OBJECT DeviceObject,
     IN PIRP Irp);
+
+#endif /* _FDC_PCH_ */
index ede3e86..47af755 100644 (file)
@@ -1,5 +1,10 @@
+#ifndef _FLOPPY_PCH_
+#define _FLOPPY_PCH_
+
 #include <wdm.h>
 
 #include "floppy.h"
 #include "csqrtns.h"
 #include "hardware.h"
+
+#endif /* _FLOPPY_PCH_ */
index 88db458..34c360c 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef _PCIIDEX_PCH_
+#define _PCIIDEX_PCH_
+
 #include <ntifs.h>
 #include <ide.h>
 
@@ -79,3 +82,5 @@ NTSTATUS NTAPI
 PciIdeXPdoPnpDispatch(
        IN PDEVICE_OBJECT DeviceObject,
        IN PIRP Irp);
+
+#endif /* _PCIIDEX_PCH_ */
index 2289e17..69afc40 100644 (file)
@@ -1 +1,6 @@
+#ifndef _SCSIPORT_PCH_
+#define _SCSIPORT_PCH_
+
 #include <wdm.h>
+
+#endif /* _SCSIPORT_PCH_ */
index b0d2b94..1241a81 100644 (file)
@@ -1,4 +1,5 @@
-#pragma once
+#ifndef _USBHUB_H_
+#define _USBHUB_H_
 
 #include <wdm.h>
 #include <hubbusif.h>
@@ -185,3 +186,5 @@ NTSTATUS
 USBHUB_ParentFDOStartDevice(
     IN PDEVICE_OBJECT DeviceObject,
     IN PIRP Irp);
+
+#endif /* _USBHUB_H_ */
index 6c213df..b80cee5 100644 (file)
@@ -546,4 +546,4 @@ USBSTOR_GetPipeHandles(
     // device is configured
     //
     return STATUS_SUCCESS;
-}
\ No newline at end of file
+}
index 9835872..2404caa 100644 (file)
@@ -517,4 +517,3 @@ USBSTOR_IsFloppy(
     //
     return FALSE;
 }
-
index 757449f..cd7172f 100644 (file)
@@ -1,5 +1,5 @@
-
-#pragma once
+#ifndef _USBSTOR_H_
+#define _USBSTOR_H_
 
 #include <wdm.h>
 #include <usbdi.h>
@@ -10,8 +10,6 @@
 #define USB_STOR_TAG 'sbsu'
 #define USB_MAXCHILDREN              (16)
 
-
-
 #define HTONS(n) (((((unsigned short)(n) & 0xFF)) << 8) | (((unsigned short)(n) & 0xFF00) >> 8))
 #define NTOHS(n) (((((unsigned short)(n) & 0xFF)) << 8) | (((unsigned short)(n) & 0xFF00) >> 8))
 
@@ -549,3 +547,4 @@ USBSTOR_TimerRoutine(
     PDEVICE_OBJECT DeviceObject,
      PVOID Context);
 
+#endif /* _USBSTOR_H_ */
index d12683f..934158e 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef _KMIXER_PCH_
+#define _KMIXER_PCH_
+
 #include <portcls.h>
 #include <float_cast.h>
 
@@ -29,3 +32,5 @@ CreatePin(
 #define KeSaveFloatingPointState(x) ((void)(x), STATUS_SUCCESS)
 #define KeRestoreFloatingPointState(x) ((void)0)
 #endif
+
+#endif /* _KMIXER_PCH_ */
index 942ecd2..6642447 100644 (file)
@@ -804,4 +804,3 @@ WdmAudControlOpenMidi(
     else
         return SetIrpIoStatus(Irp, STATUS_NOT_SUPPORTED, sizeof(WDMAUD_DEVICE_INFO));
 }
-
index 8f7b80c..38f859a 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef _WDMAUD_PCH_
+#define _WDMAUD_PCH_
+
 #include <portcls.h>
 #include <mmsystem.h>
 
@@ -309,3 +312,4 @@ VOID
 FreeItem(
     IN PVOID Item);
 
+#endif /* _WDMAUD_PCH_ */
index ff7d209..5a18cc9 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef _SYSAUDIO_PCH_
+#define _SYSAUDIO_PCH_
+
 #include <portcls.h>
 
 typedef struct
@@ -116,3 +119,4 @@ VOID
 FreeItem(
     IN PVOID Item);
 
+#endif /* _SYSAUDIO_PCH_ */