File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / mtr / packet / platform.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 00:07:30 2021 UTC (3 years, 4 months ago) by misho
Branches: mtr, MAIN
CVS tags: v0_95, v0_94, HEAD
mtr 0.94

    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 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.
   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>