This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Add default include path to support rc resource file imports.


Hi Kai,

ChangeLog for binutils/:
2007-07-01  Kai Tietz  <kai.tietz@onevision.com>

        * resrc.c: (read_rc_file): Add include path of
        user passed rc input file.
        * windres.c: (windres_add_include_dir): New.
        (main): Use of windres_add_include_dir.
        * windres.h: (windres_add_include_dir): Add
        prototype.

I have applied this patch.


There were two minor problems:

+ if(strchr (filename; '/')!=NULL || strchr (filename, '\\') != NULL)

That should be a comma between filename and '/'.


+ n->dir = p;


p is a "const char *" but n->dir is a "char *". I added a cast to remove the const qualifier and so stop a compiler warning.

Cheers
  Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]