Skip to content

Commit 1c0e801

Browse files
committed
misc: Fixes for Windows cross build
1 parent bac62a5 commit 1c0e801

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
22
AC_PREREQ([2.60])
33
define(_CLIENT_VERSION_MAJOR, 2)
4-
define(_CLIENT_VERSION_MINOR, 0)
4+
define(_CLIENT_VERSION_MINOR, 1)
55
define(_CLIENT_VERSION_REVISION, 0)
66
define(_CLIENT_VERSION_BUILD, 0)
77
define(_CLIENT_VERSION_IS_RELEASE, true)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ BEGIN
1919
BEGIN
2020
BLOCK "040904E4" // U.S. English - multilingual (hex)
2121
BEGIN
22-
VALUE "CompanyName", "Bitcoin"
23-
VALUE "FileDescription", PACKAGE_NAME " (GUI node for Bitcoin)"
22+
VALUE "CompanyName", "MicroBitcoin"
23+
VALUE "FileDescription", PACKAGE_NAME " (GUI node for MicroBitcoin)"
2424
VALUE "FileVersion", VER_FILEVERSION_STR
2525
VALUE "InternalName", "micro-qt"
2626
VALUE "LegalCopyright", COPYRIGHT_STR

src/snapshot.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ bool FetchSnapshot(fs::path &path, SnapshotProvider provider) {
5050
auto result = client.Get(provider.path.c_str());
5151
if (result && result->status == 200) {
5252
std::cout << TimestampStr() << "Shapshot: Successfully fetched snapshot file" << std::endl;
53-
std::ofstream snapshot_file(path.native());
54-
snapshot_file << result->body;
55-
snapshot_file.close();
53+
FILE *snapshot_file = fsbridge::fopen(path, "w");
54+
fwrite(result->body.data(), 1, result->body.size(), snapshot_file);
55+
fclose(snapshot_file);
5656
return true;
5757
} else {
5858
std::cout << TimestampStr() << "Shapshot: Failed to fetch snapshot file from the server" << std::endl;

src/support/httplib.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,10 @@ typedef SOCKET socket_t;
121121
#include <unistd.h>
122122

123123
typedef int socket_t;
124-
#define HTTP_INVALID_SOCKET (-1)
125124
#endif //_WIN32
126125

126+
#define HTTP_INVALID_SOCKET (-1)
127+
127128
#include <assert.h>
128129
#include <atomic>
129130
#include <condition_variable>

0 commit comments

Comments
 (0)