On 15:49 Wed 21 Sep     , Hefty, Sean wrote:
> > What is your end goal? To have one code base for OpenSM that would be able 
> > to
> > be compiled on both Linux and Windows based on __WIN__ definition?
> 
> My end goal is to decrease the maintenance cost porting opensm to Windows.  
> Ideally, I'd like to have a common code base for opensm, similar to what we 
> have for ibmad and ib-diags.  Whether we achieve that using #ifdef's, OS 
> specific header files, some other means (such as a windows specific patches 
> to complete the conversion), or a combination of these, I don't really care.

I guess in case of ib_types.h that includes lots of #ifdef's, it would be
better to use a separate file. But for other files such as osm_base.h, it
would be much overhead to separate Windows related stuff to a different file.

-- Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to