> OK. I'll see how that could be handled. There are also other > issues like : > > The "handle" you get when opening a file (or com port) in the > OS/2 code is an "int", in Windows it's a "pointer to void" (data > type "HANDLE"). So every function declaration that used this > handle must be different. You could make both the .h and the .c file OS dependent, so a SERIAL_PORT would be #defined differently. Maybe make a single .h file that includes the OS-specific .h file. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu