00001 /* 00002 wefts_os.h 00003 Select correct OS dependant libraries. 00004 00005 $Id: wefts_os.h,v 1.7 2004/03/12 05:21:29 jonnymind Exp $ 00006 --------------------------------------------- 00007 Begin : 2003-08-03 17:50 00008 Author : Giancarlo Niccolai 00009 00010 Last modified because: 00011 00012 */ 00013 00014 /************************************************************************** 00015 * This program is free software; you can redistribute it and/or modify * 00016 * it under the terms of the GNU Library General Public License as * 00017 * published by the Free Software Foundation; either version 2.1 of the * 00018 * License, or (at your option) any later version. * 00019 ***************************************************************************/ 00020 00021 00022 #ifndef WT_OS_H 00023 #define WT_OS_H 00024 00025 #ifdef HAVE_CONFIG_H 00026 #include <wefts_config.h> 00027 #endif 00028 00029 // Detect OSTAIL used (underlying threading library) 00030 #if defined( HAVE_LIBPTHREAD ) 00031 #include <wefts_os_pthread.h> 00032 #elif defined( HAVE_WIN_THREADS ) 00033 #include <wefts_os_windows.h> 00034 #else 00035 #error "Current system still not implemented" 00036 #endif 00037 00038 // Detect OS-COFFEE used (underlying filesystem interface) 00039 // Currently, windows threads are available only under windows 00040 #if defined( HAVE_WIN_THREADS ) 00041 #include <wefts_coffee_win.h> 00042 #elif defined( HAVE_UNISTD_H ) 00043 #include <wefts_coffee_unix.h> 00044 #endif 00045 00046 00047 // COFFEE is NOT essential, so no error if we can't find it. 00048 00049 #endif 00050 /* end of wefts_os.h */