Thread (32 messages) flat view 32 messages, 7 authors, 2016-06-15
DORMANTno replies

[PATCH 04/17] Add define guards to compat/win32.h

From: Marius Storm-Olsen <hidden>
Date: 2016-06-15 22:47:24
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Marius Storm-Olsen <redacted>
---
 compat/win32.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/compat/win32.h b/compat/win32.h
index c26384e..e8c178d 100644
--- a/compat/win32.h
+++ b/compat/win32.h
@@ -1,3 +1,6 @@
+#ifndef WIN32_H
+#define WIN32_H
+
 /* common Win32 functions for MinGW and Cygwin */
 #include <windows.h>
 
@@ -32,3 +35,5 @@ static inline int get_file_attr(const char *fname, WIN32_FILE_ATTRIBUTE_DATA *fd
 		return ENOENT;
 	}
 }
+
+#endif
-- 
1.6.2.1.418.g33d56.dirty
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help