summaryrefslogtreecommitdiff
path: root/editors/codeblocks/patches/patch-src_src_prefix.cpp
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2016-06-16 02:28:51 +0000
committerkamil <kamil@pkgsrc.org>2016-06-16 02:28:51 +0000
commitc52b5ff8c5f399824936be299a51828a3facd600 (patch)
tree0dd4a14377402adc609ef1b5308a1896acf95a4f /editors/codeblocks/patches/patch-src_src_prefix.cpp
parentbe101e02eccff9e147ec2ef7ed5341a9db828f35 (diff)
downloadpkgsrc-c52b5ff8c5f399824936be299a51828a3facd600.tar.gz
Import codeblocks-16.01 as editors/codeblock
Code::Blocks is a free C++ IDE built to meet the most demanding needs of its users. It is designed to be very extensible and fully configurable. Finally, an IDE with all the features you need, having a consistent look, feel and operation across platforms. Built around a plugin framework, Code::Blocks can be extended with plugins. Any kind of functionality can be added by installing/coding a plugin. For instance, compiling and debugging functionality is already provided by plugins! Originally packaged in pkgsrc-wip by: - Ondrej Tuma, - Joerg Sonnenberg, - Thomas Klausner, - Tobias Nygren, - Mark Davies, - Blue Rats, - Aleksej Saushev, - Aleksej Lebedev, - K.I.A.Derouiche and - myself.
Diffstat (limited to 'editors/codeblocks/patches/patch-src_src_prefix.cpp')
-rw-r--r--editors/codeblocks/patches/patch-src_src_prefix.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/editors/codeblocks/patches/patch-src_src_prefix.cpp b/editors/codeblocks/patches/patch-src_src_prefix.cpp
new file mode 100644
index 00000000000..279e101f957
--- /dev/null
+++ b/editors/codeblocks/patches/patch-src_src_prefix.cpp
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_src_prefix.cpp,v 1.1 2016/06/16 02:28:51 kamil Exp $
+
+Unbreak build on NetBSD. Stop redefining NULL as an arbitrary value.
+
+--- src/src/prefix.cpp.orig 2016-01-23 16:43:04.000000000 +0000
++++ src/src/prefix.cpp
+@@ -55,9 +55,6 @@ extern "C" {
+ #endif /* __cplusplus */
+
+
+-#undef NULL
+-#define NULL ((void *) 0)
+-
+ #ifdef __GNUC__
+ #define br_return_val_if_fail(expr,val) if (!(expr)) {fprintf (stderr, "** BinReloc (%s): assertion %s failed\n", __PRETTY_FUNCTION__, #expr); return val;}
+ #else