summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--iperlsys.h7
-rw-r--r--makedef.pl2
-rw-r--r--perl.h8
-rw-r--r--win32/makefile.mk2
-rw-r--r--win32/win32.h7
5 files changed, 17 insertions, 9 deletions
diff --git a/iperlsys.h b/iperlsys.h
index 3ecea4289d..92e5c28e18 100644
--- a/iperlsys.h
+++ b/iperlsys.h
@@ -74,6 +74,10 @@
extern void PerlIO_init (void);
#endif
+#ifndef Sighandler_t
+typedef Signal_t (*Sighandler_t) (int);
+#endif
+
#if defined(PERL_IMPLICIT_SYS)
#ifndef PerlIO
@@ -865,9 +869,6 @@ struct IPerlMemInfo
#if defined(PERL_IMPLICIT_SYS)
-#ifndef Sighandler_t
-typedef Signal_t (*Sighandler_t) (int);
-#endif
#ifndef jmp_buf
#include <setjmp.h>
#endif
diff --git a/makedef.pl b/makedef.pl
index a5878ff671..63a09bdad0 100644
--- a/makedef.pl
+++ b/makedef.pl
@@ -415,7 +415,7 @@ if ($define{'PERL_GLOBAL_STRUCT'})
{
my $global = readvar($perlvars_h);
skip_symbols $global;
- emit_symbols [qw(Perl_GetVars)];
+ emit_symbol('Perl_GetVars');
emit_symbols [qw(PL_Vars PL_VarsPtr)] unless $CCTYPE eq 'GCC';
}
diff --git a/perl.h b/perl.h
index 421e4a028d..b8d0dd8495 100644
--- a/perl.h
+++ b/perl.h
@@ -31,7 +31,7 @@
# define PERL_IMPLICIT_CONTEXT
# endif
# ifndef PERL_IMPLICIT_SYS
-# ifdef WIN32
+# if defined(WIN32) && !defined(__MINGW32__)
# define PERL_IMPLICIT_SYS /* XXX not implemented everywhere yet */
# endif
# endif
@@ -42,7 +42,7 @@
# define PERL_IMPLICIT_CONTEXT
# endif
# ifndef PERL_IMPLICIT_SYS
-# ifdef WIN32
+# if defined(WIN32) && !defined(__MINGW32__)
# define PERL_IMPLICIT_SYS /* XXX not implemented everywhere yet */
# endif
# endif
@@ -2139,7 +2139,7 @@ I32 unlnk (char*);
# endif
#endif
-typedef Signal_t (*Sighandler_t) (int);
+/* Sighandler_t defined in iperlsys.h */
#ifdef HAS_SIGACTION
typedef struct sigaction Sigsave_t;
@@ -2635,7 +2635,7 @@ EXT struct perl_vars *PL_VarsPtr INIT(&PL_Vars);
EXT
#endif /* WIN32 */
struct perl_vars *PL_VarsPtr;
-#define PL_Vars (*((PL_VarsPtr) ? PL_VarsPtr : (PL_VarsPtr = Perl_GetVars())))
+#define PL_Vars (*((PL_VarsPtr) ? PL_VarsPtr : (PL_VarsPtr = Perl_GetVars(aTHX))))
#endif /* PERL_CORE */
#endif /* PERL_GLOBAL_STRUCT */
diff --git a/win32/makefile.mk b/win32/makefile.mk
index b48ba1ec4c..859c1bf777 100644
--- a/win32/makefile.mk
+++ b/win32/makefile.mk
@@ -847,7 +847,7 @@ $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
$(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
$(RCOPY) include $(COREDIR)\*.*
$(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)" \
- || $(MAKE) $(MAKEMACROS) $(CONFIGPM)
+ || $(MAKE) $(MAKEMACROS) $(CONFIGPM) $(MAKEFILE)
$(MINIPERL) : $(MINIDIR) $(MINI_OBJ)
.IF "$(CCTYPE)" == "BORLAND"
diff --git a/win32/win32.h b/win32/win32.h
index 0f6f7081fa..766f488de9 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -248,6 +248,13 @@ typedef long gid_t;
#define flushall _flushall
#define fcloseall _fcloseall
+#undef __attribute__
+#define __attribute__(x)
+
+#ifndef CP_UTF8
+# define CP_UTF8 65001
+#endif
+
#ifdef PERL_OBJECT
# define MEMBER_TO_FPTR(name) &(name)
#endif