Skip to content

Commit

Permalink
Merge pull request #1 from jamescoxon/master
Browse files Browse the repository at this point in the history
updated to compile on el capitain as well as clang 7.3.0
  • Loading branch information
SharkyRawr committed Jun 9, 2016
2 parents 019a8fb + 8fce16c commit 79c5f3e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
9 changes: 6 additions & 3 deletions nyancoin-qt.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ DEFINES += QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE BOOST_THREAD_PROV
CONFIG += no_include_pwd

QT += widgets
#CONFIG += c++11

macx:BDB_LIB_PATH = /usr/local/opt/berkeley-db4/lib
macx:BDB_INCLUDE_PATH = /usr/local/opt/berkeley-db4/include
macx:BOOST_INCLUDE_PATH=/Users/jamescoxon/Development/boost_1_60_0
macx:BOOST_INCLUDE_PATH=/usr/local/include/boost.
macx:BOOST_LIB_PATH=/usr/local/lib
macx:QMAKE_CXXFLAGS += -Wno-deprecated-declarations
macx:QMAKE_MAC_SDK = macosx10.11
macx:OPENSSL_LIB_PATH += /usr/local/opt/openssl/lib
macx:OPENSSL_INCLUDE_PATH += /usr/local/opt/openssl/include

# UNCOMMENT THIS SECTION TO BUILD ON WINDOWS

Expand Down Expand Up @@ -40,7 +43,7 @@ UI_DIR = build
# use: qmake "RELEASE=1"
contains(RELEASE, 1) {
# Mac: compile for maximum compatibility (10.5, 32-bit)
macx:QMAKE_CXXFLAGS += -mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk
macx:QMAKE_CXXFLAGS += -mmacosx-version-min=10.7 -arch i386 -isysroot /Developer/SDKs/MacOSX10.7.sdk -Wno-deprecated-declarations

!windows:!macx {
# Linux: static link
Expand Down
2 changes: 1 addition & 1 deletion src/db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ void CDBEnv::Flush(bool fShutdown)
else
mi++;
}
printf("DBFlush(%s)%s ended %15"PRI64d"ms\n", fShutdown ? "true" : "false", fDbEnvInit ? "" : " db not started", GetTimeMillis() - nStart);
printf("DBFlush(%s)%s ended %15" PRI64d"ms\n", fShutdown ? "true" : "false", fDbEnvInit ? "" : " db not started", GetTimeMillis() - nStart);
if (fShutdown)
{
char** listp;
Expand Down
8 changes: 4 additions & 4 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ bool AppInit2()
printf("Shutdown requested. Exiting.\n");
return false;
}
printf(" block index %15"PRI64d"ms\n", GetTimeMillis() - nStart);
printf(" block index %15" PRI64d"ms\n", GetTimeMillis() - nStart);

if (GetBoolArg("-printblockindex") || GetBoolArg("-printblocktree"))
{
Expand Down Expand Up @@ -700,7 +700,7 @@ bool AppInit2()
}

printf("%s", strErrors.str().c_str());
printf(" wallet %15"PRI64d"ms\n", GetTimeMillis() - nStart);
printf(" wallet %15" PRI64d"ms\n", GetTimeMillis() - nStart);

RegisterWallet(pwalletMain);

Expand All @@ -720,7 +720,7 @@ bool AppInit2()
printf("Rescanning last %i blocks (from block %i)...\n", pindexBest->nHeight - pindexRescan->nHeight, pindexRescan->nHeight);
nStart = GetTimeMillis();
pwalletMain->ScanForWalletTransactions(pindexRescan, true);
printf(" rescan %15"PRI64d"ms\n", GetTimeMillis() - nStart);
printf(" rescan %15" PRI64d"ms\n", GetTimeMillis() - nStart);
}

// ********************************************************* Step 8: import blocks
Expand All @@ -747,7 +747,7 @@ bool AppInit2()
printf("Invalid or missing peers.dat; recreating\n");
}

printf("Loaded %i addresses from peers.dat %"PRI64d"ms\n",
printf("Loaded %i addresses from peers.dat %" PRI64d"ms\n",
addrman.size(), GetTimeMillis() - nStart);

// ********************************************************* Step 10: start node
Expand Down
2 changes: 1 addition & 1 deletion src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ void DumpAddresses()
CAddrDB adb;
adb.Write(addrman);

printf("Flushed %d addresses to peers.dat %"PRI64d"ms\n",
printf("Flushed %d addresses to peers.dat %" PRI64d"ms\n",
addrman.size(), GetTimeMillis() - nStart);
}

Expand Down
2 changes: 2 additions & 0 deletions src/serialize.h
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@ class CDataStream
iterator insert(iterator it, const char& x=char()) { return vch.insert(it, x); }
void insert(iterator it, size_type n, const char& x) { vch.insert(it, n, x); }

#ifndef __APPLE__
void insert(iterator it, const_iterator first, const_iterator last)
{
assert(last - first >= 0);
Expand All @@ -820,6 +821,7 @@ class CDataStream
else
vch.insert(it, first, last);
}
#endif

void insert(iterator it, std::vector<char>::const_iterator first, std::vector<char>::const_iterator last)
{
Expand Down
2 changes: 1 addition & 1 deletion src/walletdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ void ThreadFlushWalletDB(void* parg)
bitdb.CheckpointLSN(strFile);

bitdb.mapFileUseCount.erase(mi++);
printf("Flushed wallet.dat %"PRI64d"ms\n", GetTimeMillis() - nStart);
printf("Flushed wallet.dat %" PRI64d"ms\n", GetTimeMillis() - nStart);
}
}
}
Expand Down

0 comments on commit 79c5f3e

Please sign in to comment.