Skip to content

Commit

Permalink
Fix Include guards to fit C standard
Browse files Browse the repository at this point in the history
  • Loading branch information
Liryna committed May 1, 2016
1 parent ed70204 commit 4d11614
Show file tree
Hide file tree
Showing 15 changed files with 46 additions and 46 deletions.
6 changes: 3 additions & 3 deletions dokan/dokan.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ You should have received a copy of the GNU Lesser General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _DOKAN_H_
#define _DOKAN_H_
#ifndef DOKAN_H_
#define DOKAN_H_

#include <windows.h>

Expand Down Expand Up @@ -359,4 +359,4 @@ void DOKANAPI DokanMapKernelToUserCreateFileFlags(
}
#endif

#endif // _DOKAN_H_
#endif // DOKAN_H_
6 changes: 3 additions & 3 deletions dokan/dokanc.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ You should have received a copy of the GNU Lesser General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _DOKANC_H_
#define _DOKANC_H_
#ifndef DOKANC_H_
#define DOKANC_H_

#include "dokan.h"
#include <malloc.h>
Expand Down Expand Up @@ -141,4 +141,4 @@ BOOL DOKANAPI DokanSetDebugMode(ULONG Mode);
}
#endif

#endif
#endif // DOKANC_H_
6 changes: 3 additions & 3 deletions dokan/dokani.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ You should have received a copy of the GNU Lesser General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _DOKANI_H_
#define _DOKANI_H_
#ifndef DOKANI_H_
#define DOKANI_H_

#define WIN32_NO_STATUS
#include <windows.h>
Expand Down Expand Up @@ -169,4 +169,4 @@ VOID ReleaseDokanOpenInfo(PEVENT_INFORMATION EventInfomation,
}
#endif

#endif
#endif // DOKANI_H_
6 changes: 3 additions & 3 deletions dokan/fileinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ You should have received a copy of the GNU Lesser General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _FILEINFO_H_
#define _FILEINFO_H_
#ifndef FILEINFO_H_
#define FILEINFO_H_

#define IRP_MJ_CREATE 0x00
#define IRP_MJ_CREATE_NAMED_PIPE 0x01
Expand Down Expand Up @@ -505,4 +505,4 @@ typedef struct _UNICODE_STRING {
PWSTR Buffer;
} UNICODE_STRING, *PUNICODE_STRING;

#endif // _FILEINFO_H_
#endif // FILEINFO_H_
6 changes: 3 additions & 3 deletions dokan/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ You should have received a copy of the GNU Lesser General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _LIST_H_
#define _LIST_H_
#ifndef LIST_H_
#define LIST_H_

#include <windows.h>

Expand Down Expand Up @@ -134,4 +134,4 @@ VOID PushEntryList(PSINGLE_LIST_ENTRY ListHead, PSINGLE_LIST_ENTRY Entry) {
ListHead->Next = Entry;
}

#endif
#endif // LIST_H_
6 changes: 3 additions & 3 deletions dokan_fuse/include/dokanfuse.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _DOKAN_FUSE_H_
#define _DOKAN_FUSE_H_
#ifndef DOKANFUSE_H_
#define DOKANFUSE_H_

#include <string>

Expand Down Expand Up @@ -60,4 +60,4 @@ struct fuse
}
};

#endif //_DOKAN_FUSE_H_
#endif //DOKANFUSE_H_
6 changes: 3 additions & 3 deletions dokan_fuse/include/fuse.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
See the file COPYING.LIB.
*/

#ifndef _FUSE_H_
#define _FUSE_H_
#ifndef FUSE_H_
#define FUSE_H_

/* Include Windows compatibility stuff early*/
#ifdef _WIN32
Expand Down Expand Up @@ -851,4 +851,4 @@ struct fuse_session *fuse_get_session(struct fuse *f);
}
#endif

#endif /* _FUSE_H_ */
#endif /* FUSE_H_ */
8 changes: 4 additions & 4 deletions dokan_fuse/include/fuse_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

/** @file */

#if !defined(_FUSE_H_) && !defined(_FUSE_LOWLEVEL_H_)
#if !defined(FUSE_H_) && !defined(FUSE_LOWLEVEL_H_)
#error "Never include <fuse_common.h> directly; use <fuse.h> or <fuse_lowlevel.h> instead."
#endif

#ifndef _FUSE_COMMON_H_
#define _FUSE_COMMON_H_
#ifndef FUSE_COMMON_H_
#define FUSE_COMMON_H_

#include "fuse_opt.h"
#ifndef _MSC_VER
Expand Down Expand Up @@ -246,4 +246,4 @@ void fuse_remove_signal_handlers(struct fuse_session *se);
}
#endif

#endif /* _FUSE_COMMON_H_ */
#endif /* FUSE_COMMON_H_ */
6 changes: 3 additions & 3 deletions dokan_fuse/include/fuse_opt.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
See the file COPYING.LIB.
*/

#ifndef _FUSE_OPT_H_
#define _FUSE_OPT_H_
#ifndef FUSE_OPT_H_
#define FUSE_OPT_H_

/** @file
*
Expand Down Expand Up @@ -264,4 +264,4 @@ int fuse_opt_match(const struct fuse_opt opts[], const char *opt);
}
#endif

#endif /* _FUSE_OPT_H_ */
#endif /* FUSE_OPT_H_ */
6 changes: 3 additions & 3 deletions dokan_fuse/include/fuse_sem_fix.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef FUSE_SEM_FIX_H
#define FUSE_SEM_FIX_H
#ifndef FUSE_SEM_FIX_H_
#define FUSE_SEM_FIX_H_

#ifdef __CYGWIN__
#include <semaphore.h>
Expand All @@ -24,4 +24,4 @@ int my_sem_wait (sem_t * sem);

#endif

#endif //FUSE_SEM_FIX_H
#endif //FUSE_SEM_FIX_H_
6 changes: 3 additions & 3 deletions dokan_fuse/include/fuse_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* Win32 helper functions *
* Compilation on MSVC requires /Zc:wchar_t compiler option *
* ----------------------------------------------------------- */
#ifndef _FUSE_WIN_H_
#define _FUSE_WIN_H_
#ifndef FUSE_WIN_H_
#define FUSE_WIN_H_

#include <time.h>
#include <sys/types.h>
Expand Down Expand Up @@ -217,4 +217,4 @@ struct stat64 {
#define F_UNLCK 2
#define F_SETLK 6

#endif //_FUSE_WIN_H_
#endif // FUSE_WIN_H_
6 changes: 3 additions & 3 deletions dokan_fuse/include/fusemain.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef FUSEMAIN_H
#define FUSEMAIN_H
#ifndef FUSEMAIN_H_
#define FUSEMAIN_H_

#include "../../dokan/dokan.h"
#include "fuse.h"
Expand Down Expand Up @@ -231,4 +231,4 @@ class impl_file_handle
int unlock(long long start, long long len) { return file_lock->unlock_file(this, start, len); }
};

#endif //FUSEMAIN_H
#endif // FUSEMAIN_H_
6 changes: 3 additions & 3 deletions dokan_fuse/include/utils.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _UTILS_H_
#define _UTILS_H_
#ifndef UTILS_H_
#define UTILS_H_

#include <string>
#include <sys/stat.h>
Expand Down Expand Up @@ -56,4 +56,4 @@ template<class T> void convertStatlikeBuf(const struct FUSE_STAT *stbuf, const s
find_data->dwFileAttributes|=FILE_ATTRIBUTE_HIDDEN;
}

#endif
#endif // UTILS_H_
6 changes: 3 additions & 3 deletions sys/dokan.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
--*/

#ifndef _DOKAN_H_
#define _DOKAN_H_
#ifndef DOKAN_H_
#define DOKAN_H_

#include <ntifs.h>
#include <ntdddisk.h>
Expand Down Expand Up @@ -593,4 +593,4 @@ NTSTATUS DokanSendVolumeArrivalNotification(PUNICODE_STRING DeviceName);
static UNICODE_STRING sddl = RTL_CONSTANT_STRING(
L"D:P(A;;GA;;;SY)(A;;GRGWGX;;;BA)(A;;GRGWGX;;;WD)(A;;GRGX;;;RC)");

#endif // _DOKAN_H_
#endif // DOKAN_H_
6 changes: 3 additions & 3 deletions sys/public.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ You should have received a copy of the GNU Lesser General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _PUBLIC_H_
#define _PUBLIC_H_
#ifndef PUBLIC_H_
#define PUBLIC_H_

#define DOKAN_MAJOR_API_VERSION L"1"
#define DOKAN_DRIVER_VERSION 0x0000190
Expand Down Expand Up @@ -365,4 +365,4 @@ typedef struct _DOKAN_LINK_INFORMATION {
WCHAR FileName[1];
} DOKAN_LINK_INFORMATION, *PDOKAN_LINK_INFORMATION;

#endif // _PUBLIC_H_
#endif // PUBLIC_H_

0 comments on commit 4d11614

Please sign in to comment.