* [PATCH] tools/testing/selftests/proc: replace "pragma once" with include guard
@ 2020-01-30 3:14 Benjamin Lowry
0 siblings, 0 replies; only message in thread
From: Benjamin Lowry @ 2020-01-30 3:14 UTC (permalink / raw)
To: linux-kernel; +Cc: Benjamin Lowry
Signed-off-by: Benjamin Lowry <ben@ben.gmbh>
---
tools/testing/selftests/proc/proc.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/proc/proc.h b/tools/testing/selftests/proc/proc.h
index b7d57ea40237..627f99c3740d 100644
--- a/tools/testing/selftests/proc/proc.h
+++ b/tools/testing/selftests/proc/proc.h
@@ -1,4 +1,5 @@
-#pragma once
+#ifndef _PROC_H
+#define _PROC_H
#undef NDEBUG
#include <assert.h>
#include <dirent.h>
@@ -49,3 +50,5 @@ static struct dirent *xreaddir(DIR *d)
assert(de || errno == 0);
return de;
}
+
+#endif
--
2.24.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-30 3:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-30 3:14 [PATCH] tools/testing/selftests/proc: replace "pragma once" with include guard Benjamin Lowry
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).