Fixed stupid errors and added regex sub fix for windows path seperator
[sdlgit/SDL_perl.git] / make / lib / SDL / Build.pm
index bcc03a5..fc37fe1 100644 (file)
@@ -44,7 +44,7 @@ use Config;
 sub process_xs
 {
        my ($self, $file) = @_;
-
+               
        my $properties                   = $self->{properties};
        my $file_args                    = $self->notes( 'file_flags' )->{$file};
        my @old_values                   = @$properties{ keys %$file_args };
@@ -253,7 +253,7 @@ sub process_support_files {
 # get link flags with a given a sdl_dir
 sub alt_link_flags
 {
-       my($self) = @_;
+       my $self = shift;
        my $sdl_dir = shift;
 
        return '-L"'.$sdl_dir.'\lib"';
@@ -262,10 +262,10 @@ sub alt_link_flags
 # get compile flags with a given a sdl_dir
 sub alt_compile_flags
 {
-        my($self) = @_;
+        my $self = shift;
         my $sdl_dir = shift;
 
-        return '-L"'.$sdl_dir.'\include\SDL"'; 
+        return '-I"'.$sdl_dir.'\include\SDL"'; 
 }
 
 # Override to create a MacOS Bundle