Re: [mpls-linux-general] A question about coding
Status: Beta
Brought to you by:
jleu
From: James R. L. <jl...@mi...> - 2002-03-04 14:24:07
|
On Mon, Mar 04, 2002 at 10:03:19AM +0800, zjh...@so... wrote: > hi,Jim > I have read your program about ldp:ldp_portable carefully.And I tried to port the program to other os:vxworks.I have a question about the code: > #ifdef __LDP_LINUX__ > #include "ldp_list.h" > #include "ldp_refcnt.h" > #else > #include <ldp/ldp_list.h> > #include <ldp/ldp_refcnt.h> > #endif > What are your purpose to write this segment ?Why not write as follows: > > #include "ldp_list.h" > #include "ldp_refcnt.h" For a differnt porting effort it was easier to do it this way. It is left over cruft that I should probably remove. Jim -- James R. Leu |