|
Lines 1-13
Link Here
|
| 1 |
--- src/createtorrent_imp.cpp.orig 2009-03-07 07:22:19.000000000 +0900 |
1 |
--- src/createtorrent_imp.cpp.orig 2009-09-21 10:02:50.000000000 +0000 |
| 2 |
+++ src/createtorrent_imp.cpp 2009-03-23 02:00:49.000000000 +0900 |
2 |
+++ src/createtorrent_imp.cpp 2009-09-21 10:05:18.000000000 +0000 |
| 3 |
@@ -245,7 +245,11 @@ |
3 |
@@ -257,7 +257,11 @@ |
| 4 |
} |
4 |
} |
| 5 |
if(abort) return; |
5 |
if(abort) return; |
| 6 |
// calculate the hash for all pieces |
6 |
// calculate the hash for all pieces |
| 7 |
+#if defined(__GNUC__) && __GNUC__ <= 3 |
7 |
+#if defined(__GNUC__) && __GNUC__ <= 3 |
| 8 |
+ set_piece_hashes(t, full_path.branch_path(), boost::bind(&sendProgressUpdateSignal, _1, t.num_pieces(), parent)); |
8 |
+ set_piece_hashes(t, full_path.branch_path(), boost::bind(&sendProgressUpdateSignal, _1, t.num_pieces(), this)); |
| 9 |
+#else |
9 |
+#else |
| 10 |
set_piece_hashes(t, full_path.branch_path(), boost::bind<void>(&sendProgressUpdateSignal, _1, t.num_pieces(), parent)); |
10 |
set_piece_hashes(t, full_path.branch_path(), boost::bind<void>(&sendProgressUpdateSignal, _1, t.num_pieces(), this)); |
| 11 |
+#endif |
11 |
+#endif |
| 12 |
// Set qBittorrent as creator and add user comment to |
12 |
// Set qBittorrent as creator and add user comment to |
| 13 |
// torrent_info structure |
13 |
// torrent_info structure |