summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1997-11-28 05:48:15 +0000
committerGurusamy Sarathy <gsar@cpan.org>1997-11-28 05:48:15 +0000
commitb6d9d5156d687f3cae117a057e9a67f4b5b33dc5 (patch)
tree85ee7e6dff44601244ca95023b73522c4cb6233e /perl.h
parent712aa696cc63ef55016853d58e310d9a28940eda (diff)
parent04dc04aa73cc58d998c1f2e8d4c3f8576eee7e49 (diff)
downloadperl-b6d9d5156d687f3cae117a057e9a67f4b5b33dc5.tar.gz
[win32] integrate winansi.
p4raw-id: //depot/win32/perl@328
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index e68ecf6a88..a13fabf2f1 100644
--- a/perl.h
+++ b/perl.h
@@ -1359,6 +1359,14 @@ typedef Sighandler_t Sigsave_t;
# define MALLOC_TERM
#endif
+#ifdef MYMALLOC
+# define MALLOC_INIT MUTEX_INIT(&malloc_mutex)
+# define MALLOC_TERM MUTEX_DESTROY(&malloc_mutex)
+#else
+# define MALLOC_INIT
+# define MALLOC_TERM
+#endif
+
/*
* These need prototyping here because <proto.h> isn't
* included until after runops is initialised.
@@ -2007,6 +2015,17 @@ END_EXTERN_C
/* The following must follow proto.h */
+#if defined(HASATTRIBUTE) && defined(WIN32)
+/*
+ * This provides a layer of functions and macros to ensure extensions will
+ * get to use the same RTL functions as the core.
+ * It has to go here or #define of printf messes up __attribute__
+ * stuff in proto.h
+ */
+# include <win32iop.h>
+#endif /* WIN32 */
+
+
#ifdef DOINIT
EXT MGVTBL vtbl_sv = {magic_get,