Skip to content

Commit 2b56379

Browse files
committed
Added msys2 build scripts and fixed minor error in rename.h
1 parent 14d8b8a commit 2b56379

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ bin/*
66
obj/*
77
test.txt
88
SimpleJSON_build_log.html
9-
build/*
9+
build/*
10+
build32/*

build-msys2.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
rm -rf build
2+
mkdir build
3+
cd build
4+
cmake .. -G"MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=/mingw64/x86_64-w64-mingw64
5+
make

build32-msys2.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
rm -rf build32
2+
mkdir build32
3+
cd build32
4+
cmake .. -G"MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=/mingw64/x86_64-w64-mingw32
5+
make

utility/rename.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ namespace JSON
6363
rename <T, Name>& operator=(rename <T, OtherName> const& other)
6464
{
6565
if (this == &other)
66-
return;
66+
return *this;
6767

6868
objectValue_ = other.objectValue_;
6969
return *this;

0 commit comments

Comments
 (0)