# RE: creating common ib\_types.h for linux and windows

- From: Hefty, Sean \<hidden\>
- Date: 2011-09-21 15:49:44 
- List: linux-rdma
- Page: https://ratatoskr.run/linux-rdma/2011/09/15416151
- Thread: https://ratatoskr.run/linux-rdma/2011/09/15416151/t.md

```text
> 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.

- Sean
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
```
