/* * Copyright 2003, 2005, 2006 Bernhard Walle * Copyright 2010 Florian Rivoal * ------------------------------------------------------------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation; either version 2 of the License, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 675 Mass * Ave, Cambridge, MA 02139, USA. * * ------------------------------------------------------------------------------------------------- */ #ifndef _OS_H #define _OS_H #if defined (__sun__) # define __Solaris__ 1 #endif #ifdef __HPUX__ /* H P U X */ # define _XOPEN_SOURCE_EXTENDED # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include #elif __APPLE__ /* Mac OS X */ # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include #elif __DragonFly__ /* D R A G O N F L Y */ # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include #elif __FreeBSD__ || __FreeBSD_kernel__ /* F R E E B S D */ # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include #elif __NetBSD__ /* N E T B S D */ # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include #elif __OpenBSD__ || __MicroBSD__ /* O P E N B S D */ # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include #elif __linux__ /* L I N U X */ # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include #elif __Solaris__ /* S O L A R I S */ # include # define _WIDEC_H # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include #else # error "OS not supported" #endif #endif