src: remove pragma once in headers
authorÁlvaro Fernández Rojas <[email protected]>
Tue, 4 Nov 2025 13:40:22 +0000 (14:40 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 4 Nov 2025 15:27:38 +0000 (16:27 +0100)
Switch existing headers to defines instead of pragma once.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/odhcp6c.h
src/ra.h

index 7df4d14bd9a10d8c001742fb11ec678287e39606..7970a1e9f215c67f5d5ca946ae60a7b59ff0f497 100644 (file)
@@ -13,7 +13,8 @@
  *
  */
 
-#pragma once
+#ifndef _ODHCP6C_H_
+#define _ODHCP6C_H_
 
 #include <netinet/in.h>
 #include <stdbool.h>
@@ -546,3 +547,5 @@ void odhcp6c_expire(bool expire_ia_pd);
 uint32_t odhcp6c_elapsed(void);
 struct odhcp6c_opt *odhcp6c_find_opt(const uint16_t code);
 struct odhcp6c_opt *odhcp6c_find_opt_by_name(const char *name);
+
+#endif /* _ODHCP6C_H_ */
index 34d8cb46b6889a41a1bcda8b49bed6484fb06f1d..a869b5e276bc8e359fc9ea2c29d1f9d2ba2c7b26 100644 (file)
--- a/src/ra.h
+++ b/src/ra.h
@@ -13,7 +13,8 @@
  *
  */
 
-#pragma once
+#ifndef _RA_H_
+#define _RA_H_
 
 #include <netinet/in.h>
 #include <stdbool.h>
@@ -53,3 +54,5 @@ int ra_init(const char *ifname, const struct in6_addr *ifid,
                unsigned int options, unsigned int holdoff_interval);
 bool ra_link_up(void);
 bool ra_process(void);
+
+#endif /* _RA_H_ */