Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members

exincs.h

Go to the documentation of this file.
00001 /********************************************************************************
00002 *                                                                               *
00003 *              F O X E X   P r i v a t e   I n c l u d e   F i l e s            *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 2003 by Mathew Robertson.   All Rights Reserved.                *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or                 *
00009 * modify it under the terms of the GNU Lesser General Public                    *
00010 * License as published by the Free Software Foundation; either                  *
00011 * version 2.1 of the License, or (at your option) any later version.            *
00012 *                                                                               *
00013 * This library is distributed in the hope that it will be useful,               *
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU             *
00016 * Lesser General Public License for more details.                               *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public              *
00019 * License along with this library; if not, write to the Free Software           *
00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.    *
00021 *********************************************************************************/
00022 #ifndef EXINCS_H
00023 #define EXINCS_H
00024 
00025 
00026 ////////////////////  DO NOT INCLUDE THIS PRIVATE HEADER FILE  //////////////////
00027 
00028 
00029 /************************  Platform  Dependent  Headers  ***********************/
00030 #ifndef XINCS_H
00031 #include <fox/xincs.h>
00032 #endif
00033 
00034 // Basic includes
00035 
00036 #ifndef WIN32
00037 #include <sys/ioctl.h>
00038 #include <sys/file.h>
00039 #include <sys/socket.h>
00040 #include <sys/msg.h>
00041 #include <netinet/in.h>
00042 #include <sys/un.h>
00043 #include <netdb.h>
00044 #include <arpa/inet.h>
00045 #include <syslog.h>
00046 #include <termios.h>
00047 #include <dlfcn.h>
00048 #include <fcntl.h>
00049 #include <termios.h>
00050 #include <sys/mman.h>
00051 #else
00052 #include <shellapi.h>
00053 #include <malloc.h>
00054 #include <process.h>
00055 #endif
00056 
00057 #ifdef HAVE_AL_AL_H
00058 #include <AL/al.h>
00059 #include <AL/alc.h>
00060 #include <AL/altypes.h>
00061 #include <AL/alctypes.h>
00062 #include <AL/alu.h>
00063 #include <AL/alutypes.h>
00064 #include <AL/alut.h>
00065 #include <AL/aluttypes.h>
00066 #include <AL/alext.h>
00067 #include <AL/alexttypes.h>
00068 #endif
00069 
00070 #ifdef HAVE_VTKRENDERWINDOW_H
00071 #include <vtkRenderWindow.h>
00072 #include <vtkWindowToImageFilter.h>
00073 #include <vtkBMPWriter.h>
00074 #endif
00075 
00076 #ifdef HAVE_SQL_H
00077 #include <sql.h>
00078 #include <sqlext.h>
00079 #include <sqltypes.h>
00080 #include <sqlucode.h>
00081 #endif
00082 
00083 // Thread support
00084 #ifndef WIN32
00085 #  include <pthread.h>
00086 #  include <semaphore.h>
00087 #else
00088 #  define NoNanoSleep
00089 #  include <process.h>
00090 #  define SEMAPHORE_MAX 0x7fffffff
00091 #endif
00092 
00093 // include support for sendfile
00094 // note: we do some special handling since sendfile() doesn't have 64bit support
00095 #ifndef WIN32
00096 #  if _FILE_OFFSET_BITS == 64
00097 #    undef _FILE_OFFSET_BITS
00098 #    undef __USE_FILE_OFFSET64
00099 #    include <sys/sendfile.h>
00100 #    define _FILE_OFFSET_BITS 64
00101 #    define __USE_FILE_OFFSET64 1
00102 #  else
00103 #    include <sys/sendfile.h>
00104 #  endif
00105 #endif
00106 
00107 #ifdef WIN32
00108 // Define an encapsulation structure for win32 sockets.
00109 // If you really want to know why this is here, then you'd better read the source Luke...
00110 struct win32socket_t {
00111   SOCKET socket;
00112   HANDLE handle;
00113   };
00114 #endif
00115 
00116 #endif // EXINCS_H
00117