lkml.org 
[lkml]   [2020]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] tools/testing/selftests/proc: replace "pragma once" with include guard
Date
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
\
 
 \ /
  Last update: 2020-01-30 04:25    [W:0.089 / U:0.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site