1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 06:33:13 +02:00

Consistently use #pragma once across all header files.

This replaces a mixture of no include guards, ANOPE_FOO_H, and FOO_H.
This commit is contained in:
Sadie Powell
2022-01-04 12:02:50 +00:00
parent c9f93eeaed
commit 7d1047490e
84 changed files with 140 additions and 176 deletions
+4 -2
View File
@@ -105,8 +105,9 @@ static bool write_build_h(const std::string &buildh, const std::string &git_vers
return false;
}
fd << "/* This file is automatically generated by version.cpp - do not edit it! */" << std::endl;
fd << build << std::endl;
fd << "/* This file is automatically generated by version.cpp - do not edit it! */" << std::endl
<< "#pragma once" << std::endl
<< build << std::endl;
if (!git_version.empty())
fd << "#define VERSION_GIT \"" << git_version << "\"" << std::endl;
fd.close();
@@ -144,6 +145,7 @@ static bool write_version_h(const std::string &versionh, const std::map<std::str
if (!fd.is_open())
return false;
fd << "#pragma once" << std::endl;
for (std::map<std::string, std::string>::const_iterator it = versions.begin(); it != versions.end(); ++it)
{
fd << "#define " << it->first << " " << it->second << std::endl;