Browse Subversion Repository
Contents of /common/DetectOS.h
Parent Directory
| Revision Log
Revision 290 -
( show annotations)
( download)
( as text)
Tue Mar 18 06:43:15 2008 UTC
(16 years ago)
by satofumi
File MIME type: text/x-chdr
File size: 500 byte(s)
Mac 用の調整
| 1 |
#ifndef DETECT_OS_H |
| 2 |
#define DETECT_OS_H |
| 3 |
|
| 4 |
/*! |
| 5 |
\file |
| 6 |
\brief 動作OSの検出 |
| 7 |
|
| 8 |
\author Satofumi KAMIMURA |
| 9 |
|
| 10 |
\todo MAC OS の検出を追加する |
| 11 |
\todo MinGW の適切な検出方法を調べて反映する |
| 12 |
|
| 13 |
$Id$ |
| 14 |
*/ |
| 15 |
|
| 16 |
#if defined _MSC_VER || defined __CYGWIN__ || defined __MINGW32__ |
| 17 |
#define WINDOWS_OS |
| 18 |
|
| 19 |
#if defined _MSC_VER |
| 20 |
#define MSC |
| 21 |
#elif defined __CYGWIN__ |
| 22 |
#define Cygwin |
| 23 |
#elif defined __MINGW32__ |
| 24 |
#define MinGW |
| 25 |
#endif |
| 26 |
|
| 27 |
#elif defined __linux__ |
| 28 |
#define LINUX_OS |
| 29 |
|
| 30 |
#else |
| 31 |
#define MAC_OS |
| 32 |
#endif |
| 33 |
|
| 34 |
#endif /* !DETECT_OS_H */ |
|