summaryrefslogtreecommitdiff
path: root/usbredirparser/usbredirfilter.h
diff options
context:
space:
mode:
authorMichael Hanselmann <public@hansmi.ch>2021-08-12 20:13:03 +0200
committerMichael Hanselmann <public@hansmi.ch>2021-08-12 20:17:13 +0200
commit3a1ddfc3c7ef9ebbee4e6423fd2942337db793f7 (patch)
tree5293bbe132bbd7571075a10f0d3be84dcc9e7287 /usbredirparser/usbredirfilter.h
parent3dae79daa70c0b62e64fc6bf1b7e68757a812db0 (diff)
Use "#pragma once" as include guard
While "#pragma once" is not part of the C or C++ standards, it is a construct supported "by the vast majority of modern compilers"[1]. The previously used include guards starting with two underscores were also in violation of the relevant standards: identifiers starting with a double underscore ("__") are reserved for the implementation[2]. [1] https://en.cppreference.com/w/cpp/preprocessor/impl#.23pragma_once [2] https://eel.is/c++draft/lex.name#3.1 Signed-off-by: Michael Hanselmann <public@hansmi.ch>
Diffstat (limited to 'usbredirparser/usbredirfilter.h')
-rw-r--r--usbredirparser/usbredirfilter.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/usbredirparser/usbredirfilter.h b/usbredirparser/usbredirfilter.h
index eed4b51..eb015bf 100644
--- a/usbredirparser/usbredirfilter.h
+++ b/usbredirparser/usbredirfilter.h
@@ -18,8 +18,7 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __USBREDIRFILTER_H
-#define __USBREDIRFILTER_H
+#pragma once
#include <stdio.h>
#include <stdint.h>
@@ -139,5 +138,3 @@ void usbredirfilter_free(void *ptr);
#ifdef __cplusplus
}
#endif
-
-#endif