summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/adchpp/files/adchpp-2.9.0-fix_nullptr.patch')
-rw-r--r--net-p2p/adchpp/files/adchpp-2.9.0-fix_nullptr.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/net-p2p/adchpp/files/adchpp-2.9.0-fix_nullptr.patch b/net-p2p/adchpp/files/adchpp-2.9.0-fix_nullptr.patch
deleted file mode 100644
index 36a0612..0000000
--- a/net-p2p/adchpp/files/adchpp-2.9.0-fix_nullptr.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-=== modified file 'adchpp/ManagedSocket.cpp'
---- adchpp/ManagedSocket.cpp 2012-09-25 17:00:52 +0000
-+++ adchpp/ManagedSocket.cpp 2012-12-26 20:06:52 +0000
-@@ -223,10 +223,18 @@
- if(failedHandler) {
- failedHandler(reason, info);
-
-+ // using nullptr fails on older GCCs for which we're using nullptr.h; using 0 fails on VS...
-+#ifndef FAKE_NULLPTR
- connectedHandler = nullptr;
- readyHandler = nullptr;
- dataHandler = nullptr;
- failedHandler = nullptr;
-+#else
-+ connectedHandler = 0;
-+ readyHandler = 0;
-+ dataHandler = 0;
-+ failedHandler = 0;
-+#endif
- }
- }
-
-
-=== modified file 'adchpp/nullptr.h'
---- adchpp/nullptr.h 2012-06-25 17:11:13 +0000
-+++ adchpp/nullptr.h 2012-12-26 20:06:52 +0000
-@@ -6,6 +6,8 @@
- #ifdef __GNUC__
- #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6) // GCC 4.6 is the first GCC to implement nullptr.
-
-+#define FAKE_NULLPTR
-+
- const // this is a const object...
- class {
- public:
-