dawwin
July 30th, 2010, 08:46 PM
Is this ok to use linux/unix API functions in c++ programs? Are there any problems with that?
WRDN
July 30th, 2010, 08:54 PM
Theres no problem with it. However, if you want to create a cross platform application, then you should safe guard platform independant functions and headers using "#ifdef".
For Linux systems:
#ifdef __linux__
// Linux specific code
#endif
For Windows:
#ifdef _WIN32
// Windows code
#endif
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.