summaryrefslogtreecommitdiff
path: root/embed.pl
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-03-11 07:02:14 +0000
committerCharles Bailey <bailey@genetics.upenn.edu>1996-03-11 07:02:14 +0000
commit820c3be929853f3a88443f652f155f66eddf98ea (patch)
treefec66de1a5bfcf679224fc2254a2a66e989bef7c /embed.pl
parent01515ea896aa4fe438da58ebde0eb0ea9dadc6a5 (diff)
downloadperl-820c3be929853f3a88443f652f155f66eddf98ea.tar.gz
Make EMBED the default, unless overridden by -DNO_EMBED
Diffstat (limited to 'embed.pl')
-rwxr-xr-xembed.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/embed.pl b/embed.pl
index 118b911c71..e5423dde3c 100755
--- a/embed.pl
+++ b/embed.pl
@@ -7,6 +7,16 @@ print EM <<'END';
/* (Doing namespace management portably in C is really gross.) */
+/* EMBED has no run-time penalty, but helps keep the Perl namespace
+ from colliding with that used by other libraries pulled in
+ by extensions or by embedding perl. Allow a cc -DNO_EMBED
+ override, however, to keep binary compatability with previous
+ versions of perl.
+*/
+#ifndef NO_EMBED
+# define EMBED 1
+#endif
+
#ifdef EMBED
/* globals we need to hide from the world */