]> granicus.if.org Git - postgresql/commitdiff
Fix AddDefine to handle quotes properly. Magnus
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 4 Jan 2007 17:58:19 +0000 (17:58 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 4 Jan 2007 17:58:19 +0000 (17:58 +0000)
src/tools/msvc/Project.pm

index 47ec46fbde17fe8442372a71bc42eb7bfb36ce0d..e64b6a6a3a39d43d6d0b300127de61f1505e4c5c 100644 (file)
@@ -107,6 +107,7 @@ sub AddIncludeDir {
 sub AddDefine {
        my ($self, $def) = @_;
 
+       $def =~ s/"/&quot;&quot;/g;
        $self->{defines} .= $def . ';';
 }