Annotation of embedaddon/mtr/packet/platform.h, revision 1.1.1.1
1.1 misho 1: /*
2: mtr -- a network diagnostic tool
3: Copyright (C) 2016 Matt Kimball
4:
5: This program is free software; you can redistribute it and/or modify
6: it under the terms of the GNU General Public License version 2 as
7: published by the Free Software Foundation.
8:
9: This program is distributed in the hope that it will be useful,
10: but WITHOUT ANY WARRANTY; without even the implied warranty of
11: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: GNU General Public License for more details.
13:
14: You should have received a copy of the GNU General Public License
15: along with this program; if not, write to the Free Software
16: Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17: */
18:
19: #ifndef PLATFORM_H
20: #define PLATFORM_H
21:
22: /*
23: Determine the most appropriate PLATFORM_* define for our
24: current target.
25: */
26:
27: #if defined(__CYGWIN__)
28:
29: #define PLATFORM_CYGWIN
30:
31: #elif defined(__APPLE__) && defined(__MACH__)
32:
33: #define PLATFORM_OS_X
34:
35: #elif defined(__gnu_linux__)
36:
37: #define PLATFORM_LINUX
38:
39: #elif defined (__FreeBSD__)
40:
41: #define PLATFORM_FREEBSD
42:
43: #elif defined(__unix__)
44:
45: #define PLATFORM_UNIX_UNKNOWN
46:
47: #else
48:
49: #error Unsupported platform
50:
51: #endif
52:
53: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>