Author: particle
Date: Wed Jan 11 20:04:48 2006
New Revision: 11113

Modified:
   trunk/tools/build/ops2c.pl
Log:
PARROT_API marking #5: modify tools/build/ops2c.pl to decorate the generated 
header files
~ all necessary functions now marked for export

Modified: trunk/tools/build/ops2c.pl
==============================================================================
--- trunk/tools/build/ops2c.pl  (original)
+++ trunk/tools/build/ops2c.pl  Wed Jan 11 20:04:48 2006
@@ -174,11 +174,11 @@ if ($base =~ m!^src/dynoplibs/! || $dyna
     $dynamic_flag = 1;
 }
 
-my $sym_export = '';
-if ($dynamic_flag && ($PConfig{'osname'} =~ /cygwin/i ||
-    ($PConfig{'osname'} =~ /win32/i && $PConfig{'cc'} =~ /cl|gcc/i))) {
-    $sym_export = '__declspec(dllexport)';
-}
+my $sym_export = $PConfig{'sym_export'};
+#if ($dynamic_flag && ($PConfig{'osname'} =~ /cygwin/i ||
+#    ($PConfig{'osname'} =~ /win32/i && $PConfig{'cc'} =~ /cl|gcc/i))) {
+#    $sym_export = '__declspec(dllexport)';
+#}
 
 my %hashed_ops;
 

Reply via email to