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:
+4
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user