Browse Source

exclude CreatePidFile() function on WIN32 as it is unused

0.8
Philip Kaufmann 11 years ago committed by Warren Togami
parent
commit
ffd7439799
  1. 2
      src/util.cpp
  2. 2
      src/util.h

2
src/util.cpp

@ -1119,6 +1119,7 @@ boost::filesystem::path GetPidFile() @@ -1119,6 +1119,7 @@ boost::filesystem::path GetPidFile()
return pathPidFile;
}
#ifndef WIN32
void CreatePidFile(const boost::filesystem::path &path, pid_t pid)
{
FILE* file = fopen(path.string().c_str(), "w");
@ -1128,6 +1129,7 @@ void CreatePidFile(const boost::filesystem::path &path, pid_t pid) @@ -1128,6 +1129,7 @@ void CreatePidFile(const boost::filesystem::path &path, pid_t pid)
fclose(file);
}
}
#endif
bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest)
{

2
src/util.h

@ -210,7 +210,9 @@ boost::filesystem::path GetDefaultDataDir(); @@ -210,7 +210,9 @@ boost::filesystem::path GetDefaultDataDir();
const boost::filesystem::path &GetDataDir(bool fNetSpecific = true);
boost::filesystem::path GetConfigFile();
boost::filesystem::path GetPidFile();
#ifndef WIN32
void CreatePidFile(const boost::filesystem::path &path, pid_t pid);
#endif
void ReadConfigFile(std::map<std::string, std::string>& mapSettingsRet, std::map<std::string, std::vector<std::string> >& mapMultiSettingsRet);
#ifdef WIN32
boost::filesystem::path GetSpecialFolderPath(int nFolder, bool fCreate = true);

Loading…
Cancel
Save