summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1997-11-26 00:27:57 +0000
committerGurusamy Sarathy <gsar@cpan.org>1997-11-26 00:27:57 +0000
commitc31fac668b253062b943c71d3452e678b6f02609 (patch)
treebf9ee12ba220ede3aadb62c3004f00f0cedf9962 /ext
parent769c30bc4bb5d7abeb7306e297a4071100a0e741 (diff)
downloadperl-c31fac668b253062b943c71d3452e678b6f02609.tar.gz
[win32] Various changes to make it build cleanly and pass all tests:
- needed to run `perl embed.pl` - use PERL_CORE instead of PERLDLL in places that do mean PERL_CORE - fix prototypes for a few declarations (Borland is finally quiet) - move declaration of Mymalloc etc to perl.h (since win32 and other ports may #define malloc themselves, to let extensions bind to the version that perl used) - move struct reg_data into a public header file, since it is referenced in a public datatype - win32 makefile fixes - fix remaining s/thread/perl_thread/ p4raw-id: //depot/win32/perl@304
Diffstat (limited to 'ext')
-rw-r--r--ext/DynaLoader/dlutils.c10
-rw-r--r--ext/SDBM_File/sdbm/sdbm.h2
2 files changed, 2 insertions, 10 deletions
diff --git a/ext/DynaLoader/dlutils.c b/ext/DynaLoader/dlutils.c
index 58006789ef..422b3d1bf9 100644
--- a/ext/DynaLoader/dlutils.c
+++ b/ext/DynaLoader/dlutils.c
@@ -26,7 +26,7 @@ static int dl_debug = 0; /* value copied from $DynaLoader::dl_error */
static void
-dl_generic_private_init() /* called by dl_*.xs dl_private_init() */
+dl_generic_private_init(void) /* called by dl_*.xs dl_private_init() */
{
char *perl_dl_nonlazy;
#ifdef DEBUGGING
@@ -44,16 +44,8 @@ dl_generic_private_init() /* called by dl_*.xs dl_private_init() */
/* SaveError() takes printf style args and saves the result in LastError */
-#ifdef STANDARD_C
static void
SaveError(char* pat, ...)
-#else
-/*VARARGS0*/
-static void
-SaveError(pat, va_alist)
- char *pat;
- va_dcl
-#endif
{
va_list args;
char *message;
diff --git a/ext/SDBM_File/sdbm/sdbm.h b/ext/SDBM_File/sdbm/sdbm.h
index 5bc629f402..ac2dc36b01 100644
--- a/ext/SDBM_File/sdbm/sdbm.h
+++ b/ext/SDBM_File/sdbm/sdbm.h
@@ -49,7 +49,7 @@ typedef struct {
extern datum nullitem;
-#if defined(__STDC__) || defined(__cplusplus)
+#if defined(__STDC__) || defined(__cplusplus) || defined(CAN_PROTOTYPE)
#define proto(p) p
#else
#define proto(p) ()