Skip to contentSkip to conversation

tools/testing/selftests/proc: replace "pragma once" with include guard

PATCH New Benjamin Lowry 1 participant 1 message Jan 30, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/testing/selftests/proc: replace "pragma once" with include guard

---
 tools/testing/selftests/proc/proc.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
tools/testing/selftests/proc/proc.h +4 -1
index b7d57ea40237..627f99c3740d 100644
@@ -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
Signature · 1 line
2.24.1