Changed how conflicitng first/max TTL works.
[mtr.git] / packet / platform.h
blob3b0fbef49cea5a33791ecd544fedd0cc4e29d967
1 /*
2 mtr -- a network diagnostic tool
3 Copyright (C) 2016 Matt Kimball
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.
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.
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef PLATFORM_H
20 #define PLATFORM_H
23 Determine the most appropriate PLATFORM_* define for our
24 current target.
27 #if defined(__CYGWIN__)
29 #define PLATFORM_CYGWIN
31 #elif defined(__APPLE__) && defined(__MACH__)
33 #define PLATFORM_OS_X
35 #elif defined(__gnu_linux__)
37 #define PLATFORM_LINUX
39 #elif defined (__FreeBSD__)
41 #define PLATFORM_FREEBSD
43 #elif defined(__unix__)
45 #define PLATFORM_UNIX_UNKNOWN
47 #else
49 #error Unsupported platform
51 #endif
53 #endif