summaryrefslogtreecommitdiff
path: root/src/perl/irc/Irc.xs
diff options
context:
space:
mode:
authorDavid Leadbeater <dgl@dgl.cx>2014-06-24 20:20:27 +0100
committerDavid Leadbeater <dgl@dgl.cx>2014-06-24 20:20:27 +0100
commit43df6e424e468bd16da076bf01c848b89a7dbf60 (patch)
tree4502ac50dd30f1829c99ecc11211f7f343ca1020 /src/perl/irc/Irc.xs
parentc26a634fe6f65f44cdd036d2657fe4335ed6e309 (diff)
downloadirssi-43df6e424e468bd16da076bf01c848b89a7dbf60.zip
Define PERL_NO_GET_CONTEXT in all perl source files
This removes the calls to Perl_get_context() that get automatically added to XS code for ancient source code compatibility reasons. The result is about a ~60K size reduction in the binary (based on comparing two 64-bit stripped irssi binaries compiled --with-perl-staticlib).
Diffstat (limited to 'src/perl/irc/Irc.xs')
-rw-r--r--src/perl/irc/Irc.xs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/perl/irc/Irc.xs b/src/perl/irc/Irc.xs
index 251efb8b..22a87384 100644
--- a/src/perl/irc/Irc.xs
+++ b/src/perl/irc/Irc.xs
@@ -1,3 +1,4 @@
+#define PERL_NO_GET_CONTEXT
#include "module.h"
static int initialized = FALSE;