all ifndef replaced with pragma once #19

Merged
wt merged 1 commits from delete_ifndefs_add_pragma_once into main 2025-02-28 20:20:20 +07:00
6 changed files with 6 additions and 30 deletions
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef DNS_HPP
#define DNS_HPP
#pragma once
#include <json.hpp>
namespace api
@@ -15,5 +13,3 @@ namespace api
}
}
}
#endif // DNS_HPP
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef FTP_HPP
#define FTP_HPP
#pragma once
namespace api
{
namespace settings
@@ -11,5 +9,3 @@ namespace api
}
}
}
#endif // FTP_HPP
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef SETTINGS_HPP
#define SETTINGS_HPP
#pragma once
#include <settings/wifi/wifi.hpp>
#include <settings/telnet/telnet.hpp>
#include <settings/ssh/ssh.hpp>
@@ -19,5 +17,3 @@ namespace api
void set(const httplib::Request& request, httplib::Response& response);
}
}
#endif // SETTINGS_HPP
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef SSH_HPP
#define SSH_HPP
#pragma once
#include <json.hpp>
#define DROPBEAR_SSH "dropbear"
@@ -20,5 +18,3 @@ namespace api
}
}
}
#endif // SSH_HPP
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef SETTINGS_TELNET_HPP
#define SETTINGS_TELNET_HPP
#pragma once
namespace api
{
namespace settings
@@ -12,5 +10,3 @@ namespace api
}
}
}
#endif // SETTINGS_TELNET_HPP
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef WIFI_HPP
#define WIFI_HPP
#pragma once
#include <httplib.h>
#define WIFI_SETTINGS_PATH "/etc/hostapd/hostapd.conf"
@@ -19,5 +17,3 @@ namespace api
}
}
}
#endif // WIFI_HPP