sinfo_vltPort.h

00001 /*
00002  * This file is part of the ESO SINFONI Pipeline
00003  * Copyright (C) 2004,2005 European Southern Observatory
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA
00018  */
00019 /*************************************************************************
00020 * E.S.O. - VLT project
00021 *
00022 * "@(#) $Id: sinfo_vltPort.h,v 1.3 2006/10/25 06:46:09 amodigli Exp $" 
00023 *
00024 * vltPort.h for Sun Solaris 2
00025 *
00026 * who        when      what
00027 * --------  --------  ----------------------------------------------
00028 * gfilippi  22/05/96  created form vltPort.h
00029 * gfilippi  23/05/96  define SUN_COMP added
00030 *
00031 */
00032 
00033 /************************************************************************
00034 *  vltPort.h - Include file to mask differences between platforms.
00035 *              This file should be included in all source files.
00036 *              It relies on macro definitions preceeding the
00037 *              inclusion of this file.
00038 *                
00039 *  REMARK: This file belongs to the "vltMake" module.
00040 *------------------------------------------------------------------------
00041 */
00042 
00043 #ifndef SINFO_VLTPORT_H
00044 #define SINFO_VLTPORT_H
00045 
00046 /*
00047 * When it is used, vltPort.h MUST be the very first file included
00048 * in ANSI ".c" files.
00049 * Cause a syntax error if we detect that any other include file has been
00050 * included before vltPort.h in an ANSI ".c" file.
00051 */
00052 #if defined(__STDC__) && \
00053                          (defined(_H_STANDARDS) || \
00054                           defined(_SYS_STDSYMS_INCLUDED) || \
00055                           defined(_STANDARDS_H_))
00056 #    error "vltPort.h MUST BE THE VERY FIRST FILE INCLUDED IN ANSI '.c' FILES"
00057 #endif
00058 
00059 /*
00060  * This file is used also by some VxWorks code.
00061  * To be compatible with existing code, SUN_COMP is defined for both
00062  * gcc and cc68k, but the following definitiond do not influence cc68k
00063  */
00064  
00065 #define SUN_COMP
00066 
00067 /* 
00068  * at present, SELECT is defined in the code using it. It should be done here
00069  * for all. May be in the next release.
00070  */
00071 
00072 /*
00073  * Adjust name-space information.
00074  */
00075 #if defined(_ALL_SOURCE)
00076 #    undef _POSIX_C_SOURCE
00077 #endif
00078 
00079 #if defined(_XOPEN_SOURCE)
00080 #    undef _POSIX_C_SOURCE
00081 #endif
00082 
00083 #ifndef MAKE_VXWORKS
00084 #include <stddef.h>
00085 #include <sys/types.h>
00086 #include <sys/time.h>
00087 
00088 #if !defined(timercmp)
00089 /*
00090 AMO: 03/09/03 commented out for Linux
00091     struct timeval
00092         {
00093         long      tv_sec;         
00094         long      tv_usec;        
00095         };
00096 */
00097 #define crTIMEVAL_TIMEZONE_DEFINED
00098 #endif
00099 #endif /* MAKE_VXWORKS */
00100 
00101 #endif 

Generated on 8 Mar 2011 for SINFONI Pipeline Reference Manual by  doxygen 1.6.1