00001 //=========================================================================== 00002 /* 00003 This file is part of the CHAI 3D visualization and haptics libraries. 00004 Copyright (C) 2003-2009 by CHAI 3D. All rights reserved. 00005 00006 This library is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License("GPL") version 2 00008 as published by the Free Software Foundation. 00009 00010 For using the CHAI 3D libraries with software that can not be combined 00011 with the GNU GPL, and for taking advantage of the additional benefits 00012 of our support services, please contact CHAI 3D about acquiring a 00013 Professional Edition License. 00014 00015 \author <http://www.chai3d.org> 00016 \author Francois Conti 00017 \version 2.0.0 $Rev: 251 $ 00018 */ 00019 //=========================================================================== 00020 00021 //--------------------------------------------------------------------------- 00022 #ifndef CExtrasH 00023 #define CExtrasH 00024 //--------------------------------------------------------------------------- 00025 #if defined(_WIN32) 00026 #include "windows.h" 00027 #endif 00028 00029 #if defined(_LINUX) 00030 #include <time.h> 00031 #include <pthread.h> 00032 #include <stdlib.h> 00033 #include <unistd.h> 00034 #include <stdio.h> 00035 #include <string.h> 00036 #include <termios.h> 00037 #include <signal.h> 00038 #include <errno.h> 00039 #include <fcntl.h> 00040 #include <sys/time.h> 00041 #include <sys/io.h> 00042 #include <sys/mman.h> 00043 #endif 00044 00045 #if defined(_MACOSX) 00046 #include <mach/mach_time.h> 00047 #include <mach/kern_return.h> 00048 #include <sys/mman.h> 00049 #include <pthread.h> 00050 #include <stdlib.h> 00051 #include <unistd.h> 00052 #include <stdio.h> 00053 #include <termios.h> 00054 #include <string.h> 00055 #include <fcntl.h> 00056 #endif 00057 //--------------------------------------------------------------------------- 00058 00059 //=========================================================================== 00068 //=========================================================================== 00069 00070 //--------------------------------------------------------------------------- 00071 // GENERAL PUPOSE FUNCTIONS: 00072 //--------------------------------------------------------------------------- 00073 00075 void cSleepMs(unsigned int a_interval); 00076 00077 //--------------------------------------------------------------------------- 00078 #endif 00079 //---------------------------------------------------------------------------