Re: [U-Boot] [PATCH] Avoid using GNU basename

2012-03-03 Thread Wolfgang Denk
Dear Keith, please keep the mailing list on Cc: In message you wrote: > > > I'm not a windows expert (actually I'm proud of never having worked > > with Windows in my whole life), but I think it is only the command > > line interface that insists of using '\\' (because DOS used '/' as > > opti

Re: [U-Boot] [PATCH] Avoid using GNU basename

2012-03-02 Thread Wolfgang Denk
Dear Keith Mok, In message you wrote: > > > Besides - I agree with Mike's comment how your MacOS issue should be > > fixed. > But will Mike's fix break Windows user which cross-compile u-boot ? > The path separator is '\' instead of '/' I'm not a windows expert (actually I'm proud of never hav

Re: [U-Boot] [PATCH] Avoid using GNU basename

2012-03-02 Thread Keith Mok
Hi Wolfgang, > Besides - I agree with Mike's comment how your MacOS issue should be > fixed. But will Mike's fix break Windows user which cross-compile u-boot ? The path separator is '\' instead of '/' Regards, Keith ___ U-Boot mailing list U-Boot@list

Re: [U-Boot] [PATCH] Avoid using GNU basename

2012-03-01 Thread Wolfgang Denk
Dear Keith Mok, In message you wrote: > There is no GNU basename support in MacOS. > Use generic POSIX basename defined in libgen.h instead. ... > int fp, ep; > const char *prg; > + char *prog_pathname; > > - prg = basename(argv[0]); > + prog_pathname = strdup(

Re: [U-Boot] [PATCH] Avoid using GNU basename

2012-02-29 Thread Mike Frysinger
On Tuesday 28 February 2012 10:36:22 Keith Mok wrote: > There is no GNU basename support in MacOS. > Use generic POSIX basename defined in libgen.h instead. alternative: define a non-braindead version in compiler.h: static const char *_basename(const char *filename) { const char *p = strrc