proper design for a platform independent applicaiton
Im looking for a good spec or anyone with experience of how to properly design a c program to be os independent (ie and linux and windows os). From what I have thought of and seen done a lot in the linux kernel is to define a header file like asm.h. In asm.h it includes files to the specific defined architecture by way of #ifdef. Any other suggestions or things I should be warey of would be appreciated.
Thanks in advance.
|