mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-18 05:44:14 -05:00
Fixed compile on Windows.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.6-initdev@7052 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ae5942733e
commit
bb0d02f3dc
@ -30,6 +30,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef WINDOWS_SYS
|
||||
#include "util/rswin.h"
|
||||
#endif // WINDOWS_SYS
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
@ -307,7 +311,7 @@ bool RsAccountsDetail::defaultBaseDirectory()
|
||||
basedir += "/.retroshare6";
|
||||
|
||||
#else
|
||||
if (RsInitConfig::portable)
|
||||
if (RsInit::isPortable())
|
||||
{
|
||||
// use directory "Data" in portable version
|
||||
basedir = "Data";
|
||||
@ -866,14 +870,8 @@ bool RsAccountsDetail::copyGnuPGKeyrings()
|
||||
std::string source_secret_keyring;
|
||||
|
||||
#ifdef WINDOWS_SYS
|
||||
if (RsInit::isPortable())
|
||||
{
|
||||
source_public_keyring = RsInit::RsConfigDirectory() + "/gnupg/pubring.gpg";
|
||||
source_secret_keyring = RsInit::RsConfigDirectory() + "/gnupg/secring.gpg" ;
|
||||
} else {
|
||||
source_public_keyring = RsInitConfig::basedir + "/../gnupg/pubring.gpg" ;
|
||||
source_secret_keyring = RsInitConfig::basedir + "/../gnupg/secring.gpg" ;
|
||||
}
|
||||
source_public_keyring = mBaseDirectory + "/gnupg/pubring.gpg";
|
||||
source_secret_keyring = mBaseDirectory + "/gnupg/secring.gpg" ;
|
||||
#else
|
||||
char *env_gnupghome = getenv("GNUPGHOME") ;
|
||||
|
||||
|
@ -23,6 +23,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef WINDOWS_SYS
|
||||
#include "util/rswin.h"
|
||||
#endif // WINDOWS_SYS
|
||||
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/evp.h>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user