Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » C++ » C++ code to identify OS type

C++ code to identify OS type

#if defined(_AIX)
/* IBM AIX. ------------------------------------------------- */

#if defined(__hpux)
/* Hewlett-Packard HP-UX. ----------------------------------- */

#if defined(__linux__)
/* Linux. --------------------------------------------------- */

#if defined(__sun) && defined(__SVR4)
/* Solaris. ------------------------------------------------- */

Other Categories

MCQ on C Programming MCQ on C++ Programming Basic Computer Questions Solved C programs Solved C++ programs