summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-01-10 18:56:16 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-01-10 18:56:16 +0000
commit9880fea4465d0a130eccfb25ae31bf595e3bb791 (patch)
treec00d3b767eaa47b17917d24826aa5cda151cb441
parentf7aeb604c5566ea382e11775c0d364a41af8fbb9 (diff)
downloadperl-9880fea4465d0a130eccfb25ae31bf595e3bb791.tar.gz
check for USE_ITHREADS sanity was too restrictive
p4raw-id: //depot/perl@4790
-rw-r--r--perl.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/perl.h b/perl.h
index ecc1ce1f17..f77b823f1b 100644
--- a/perl.h
+++ b/perl.h
@@ -43,10 +43,6 @@
# endif
#endif
-#if defined(USE_ITHREADS) && !defined(MULTIPLICITY)
-# include "error: USE_ITHREADS must be built with MULTIPLICITY"
-#endif
-
#if defined(MULTIPLICITY)
# ifndef PERL_IMPLICIT_CONTEXT
# define PERL_IMPLICIT_CONTEXT
@@ -55,6 +51,9 @@
#ifdef PERL_CAPI
# undef PERL_OBJECT
+# ifndef MULTIPLICITY
+# define MULTIPLICITY
+# endif
# ifndef PERL_IMPLICIT_CONTEXT
# define PERL_IMPLICIT_CONTEXT
# endif
@@ -72,6 +71,10 @@
# endif
#endif
+#if defined(USE_ITHREADS) && !defined(MULTIPLICITY) && !defined(PERL_OBJECT)
+# include "error: USE_ITHREADS must be built with MULTIPLICITY"
+#endif
+
#ifdef PERL_OBJECT
/* PERL_OBJECT explained - DickH and DougL @ ActiveState.com