diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2023-09-22 10:52:50 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2023-09-22 10:52:50 +0200 |
commit | 82eaed9d4c5cc7bad322dd1e26b2f7bb238a5911 (patch) | |
tree | 14c29249b08b20c8071f1461742858db36fd7f71 | |
parent | 4a41a57dd39d2012b890cb06c4d336967d29a1f6 (diff) |
sysctl: Use the include guard instead of pragma once
-rw-r--r-- | ell/sysctl.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ell/sysctl.h b/ell/sysctl.h index 4dd65e87..43c10c51 100644 --- a/ell/sysctl.h +++ b/ell/sysctl.h @@ -21,14 +21,15 @@ * */ -#pragma once +#ifndef __ELL_SYSCTL_H +#define __ELL_SYSCTL_H + +#include <stdint.h> #ifdef __cplusplus extern "C" { #endif -#include <stdint.h> - int l_sysctl_get_u32(uint32_t *out_v, const char *format, ...) __attribute__((format(printf, 2, 3))); int l_sysctl_set_u32(uint32_t v, const char *format, ...) @@ -37,3 +38,5 @@ int l_sysctl_set_u32(uint32_t v, const char *format, ...) #ifdef __cplusplus } #endif + +#endif /* __ELL_SYSCTL_H */ |