Skip to content

Commit

Permalink
[win32] remove __declspec kludge in sdbm.h in favor of setting a
Browse files Browse the repository at this point in the history
flag for static symbols

p4raw-id: //depot/win32/perl@876
  • Loading branch information
Gurusamy Sarathy committed Apr 4, 1998
1 parent 1a441de commit 9c293c1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion EXTERN.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# define EXTCONST globalref
# define dEXTCONST globaldef {"$GLOBAL_RO_VARS"} readonly
#else
# if defined(WIN32) && !defined(__GNUC__)
# if defined(WIN32) && !defined(PERL_STATIC_SYMS) && !defined(__GNUC__)
# ifdef PERLDLL
# define EXT extern __declspec(dllexport)
# define dEXT
Expand Down
2 changes: 1 addition & 1 deletion ext/SDBM_File/sdbm/Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use ExtUtils::MakeMaker;

$define = '-DSDBM -DDUFF';
$define .= ' -DWIN32' if ($^O eq 'MSWin32');
$define .= ' -DWIN32 -DPERL_STATIC_SYMS' if ($^O eq 'MSWin32');

if ($^O eq 'VMS') { # Old VAXC compiler can't handle Duff's device
require Config;
Expand Down
5 changes: 0 additions & 5 deletions ext/SDBM_File/sdbm/sdbm.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
#endif
#define PAGFEXT ".pag"

#ifdef WIN32
#undef __declspec
#define __declspec(t) /* kludge for EXTCONST below */
#endif

typedef struct {
int dirf; /* directory file descriptor */
int pagf; /* page file descriptor */
Expand Down

0 comments on commit 9c293c1

Please sign in to comment.