Add workaround for Darwin's (Mac OS X's) INT32_MIN
[p5sagit/p5-mst-13.2.git] / proto.h
diff --git a/proto.h b/proto.h
index ed4ba6c..65b4883 100644 (file)
--- a/proto.h
+++ b/proto.h
@@ -91,6 +91,7 @@ PERL_CALLCONV OP*     Perl_block_end(pTHX_ I32 floor, OP* seq);
 PERL_CALLCONV I32      Perl_block_gimme(pTHX);
 PERL_CALLCONV int      Perl_block_start(pTHX_ int full);
 PERL_CALLCONV void     Perl_boot_core_UNIVERSAL(pTHX);
+PERL_CALLCONV void     Perl_boot_core_PerlIO(pTHX);
 PERL_CALLCONV void     Perl_call_list(pTHX_ I32 oldscope, AV* av_list);
 PERL_CALLCONV bool     Perl_cando(pTHX_ Mode_t mode, Uid_t effective, Stat_t* statbufp);
 PERL_CALLCONV U32      Perl_cast_ulong(pTHX_ NV f);
@@ -486,7 +487,7 @@ PERL_CALLCONV int   Perl_mode_from_discipline(pTHX_ SV* discp);
 PERL_CALLCONV char*    Perl_moreswitches(pTHX_ char* s);
 PERL_CALLCONV OP*      Perl_my(pTHX_ OP* o);
 PERL_CALLCONV NV       Perl_my_atof(pTHX_ const char *s);
-#if !defined(HAS_BCOPY) || !defined(HAS_SAFE_BCOPY)
+#if (!defined(HAS_MEMCPY) && !defined(HAS_BCOPY)) || (!defined(HAS_MEMMOVE) && !defined(HAS_SAFE_MEMCPY) && !defined(HAS_SAFE_BCOPY))
 PERL_CALLCONV char*    Perl_my_bcopy(const char* from, char* to, I32 len);
 #endif
 #if !defined(HAS_BZERO) && !defined(HAS_MEMSET)
@@ -1304,8 +1305,11 @@ STATIC I32       S_cr_textfilter(pTHX_ int idx, SV *sv, int maxlen);
 STATIC SV*     S_isa_lookup(pTHX_ HV *stash, const char *name, int len, int level);
 #endif
 
-#if defined(PERL_IN_UTIL_C) || defined(PERL_DECL_PROT)
+#if defined(PERL_IN_LOCALE_C) || defined(PERL_DECL_PROT)
 STATIC char*   S_stdize_locale(pTHX_ char* locs);
+#endif
+
+#if defined(PERL_IN_UTIL_C) || defined(PERL_DECL_PROT)
 STATIC SV*     S_mess_alloc(pTHX);
 #  if defined(LEAKTEST)
 STATIC void    S_xstat(pTHX_ int);