Hopefully fixes build on Windows

This commit is contained in:
Thomas Winget 2015-03-20 16:40:54 -04:00
parent 9dab105e2e
commit 2b0583b2c6
No known key found for this signature in database
GPG key ID: 58131A160789E630
3 changed files with 15 additions and 3 deletions

View file

@ -326,7 +326,7 @@ std::string get_nix_version_display_string()
std::string config_folder; std::string config_folder;
#ifdef WIN32 #ifdef WIN32
config_folder = get_special_folder_path(CSIDL_APPDATA, true) + "/" + CRYPTONOTE_NAME; config_folder = get_special_folder_path(CSIDL_COMMON_APPDATA, true) + "\\" + CRYPTONOTE_NAME;
#else #else
std::string pathRet; std::string pathRet;
char* pszHome = getenv("HOME"); char* pszHome = getenv("HOME");

View file

@ -58,6 +58,18 @@ namespace tools
*/ */
std::string get_default_data_dir(); std::string get_default_data_dir();
#ifdef WIN32
/**
* @brief
*
* @param nfolder
* @param iscreate
*
* @return
*/
std::string get_special_folder_path(int nfolder, bool iscreate);
#endif
/*! \brief Returns the OS version string /*! \brief Returns the OS version string
* *
* \details This is a wrapper around the primitives * \details This is a wrapper around the primitives

View file

@ -81,9 +81,9 @@ namespace daemonizer
boost::program_options::variables_map const & vm boost::program_options::variables_map const & vm
) )
{ {
if (command_line::arg_present(vm, arg_is_service)) if (command_line::has_arg(vm, arg_is_service))
{ {
if (command_line::arg_present(vm, command_line::arg_data_dir)) if (command_line::has_arg(vm, command_line::arg_data_dir))
{ {
return command_line::get_arg(vm, command_line::arg_data_dir); return command_line::get_arg(vm, command_line::arg_data_dir);
} }