thanks amit. i got it resolved. thanks for the help. --- Amit Choudhary <amit2030@xxxxxxxxx> wrote: > > Hi YKhan, > > You can do a "#undef strdup" and then define your > macro. > > #undef strdup > #define strdup(s) my_strdup(s) > > Hope this helps. Another solution would be to > implement the > strdup function again without the macro. Your > function > definition will be used instead of the library's > version. > > Regards, > Amit > > --- Y Khan <ykhanportland@xxxxxxxxx> wrote: > > > Hi All, > > > > I want to supply my own definition of strdup. So, > in > > my code I did > > > > #define strdup(s) my_strdup(s) > > > > But when I compile it, I get an error that there > is a > > previous definition of strdup. > > > > string2.h: this is the location of the previous > > definition. > > > > Can someone tell me how to resolve this. > > > > YKhan > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection > > around > > http://mail.yahoo.com > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com