Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions File.xs
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
/* Win32API/File.xs */

#define PERL_NO_GET_CONTEXT
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
/*#include "patchlevel.h"*/

/* Uncomment the next line unless set "WRITE_PERL=>1" in Makefile.PL: */
#define NEED_newCONSTSUB
#include "ppport.h"
#ifdef USE_PPPORT_H
# define NEED_newCONSTSUB
# include "ppport.h"
#endif

#ifdef WORD
# undef WORD
Expand Down Expand Up @@ -57,6 +59,7 @@
static void
ErrPrintf( const char *sFmt, ... )
{
dTHX;
va_list pAList;
static char *sEnv= NULL;
DWORD uErr= GetLastError();
Expand Down
1 change: 1 addition & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ WriteMakefile1(
( $Config{archname} =~ /-object\b/i ? ( 'CAPI' => 'TRUE' ) : () ),
'AUTHOR' => 'Tye McQueen <[email protected]>',
'ABSTRACT_FROM' => 'File.pm',
'DEFINE' => ($ENV{PERL_CORE} ? '' : '-DUSE_PPPORT_H'),
'postamble' => { IMPORT_LIST => [qw(/._/ !/[a-z]/ :MEDIA_TYPE)],
IFDEF => "!/[a-z\\d]/",
CPLUSPLUS => 1,
Expand Down