check for USE_ITHREADS sanity was too restrictive
Gurusamy Sarathy [Mon, 10 Jan 2000 18:56:16 +0000 (18:56 +0000)]
p4raw-id: //depot/perl@4790

perl.h

diff --git a/perl.h b/perl.h
index ecc1ce1..f77b823 100644 (file)
--- a/perl.h
+++ b/perl.h
 #  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
 #  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