Wouter van Ooijen wrote : > > 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. I think I have solved this now by conditionaly setup things in the .h file. So the data type for the "file handle" in the function declarations will be a typedef'ed type with (currently) either "int" or "HANDLE". So it's back to a single function declarations. Much like you described... Anyway, Rob and I have decided to take the current porting job of-list for a few days to save bandwith (and your time) :-) :-) Jan-Erik. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu