rigoudan / oscheck.h

a header file use include to check what the current system is

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

oscheck.h

a header file use include to check what the current system is.

Usage

#include "oscheck.h"

if current system is Linux, then macro os_linux will be defined.

#ifdef os_linux
xxx
#endif

if current system is Win, then macro os_win will be defined.

#ifdef os_win
xxx
#endif

About

a header file use include to check what the current system is


Languages

Language:C++ 60.7%Language:C 39.3%