Looking for info: Cross-Platform
Hey, im looking for more info into making libraries cross-platform, examples would be nice, descriptions, links anything you can provide. My google searches always come up with a mass-list of other people's cross-platform libraries, and no info on actually making them cross-platform.
For info: Im working on a simple console library, change colors etc and it currently supports both win32 and unix via a collection of preprocessor includes..
Code:
#if defined _WIN32
// code here
#elif defined __unix
//code here
#endif
Is this the method that other people use when designining and creating cross-platform libraries, or is this just the nub method of doing it?
Any info would be great. Thanks.