setjmp_xsb.h

00001 /* File:      setjmp_xsb.h
00002 ** Author(s): kifer
00003 ** Contact:   xsb-contact@cs.sunysb.edu
00004 **
00005 ** Copyright (C) The Research Foundation of SUNY, 1999
00006 ** 
00007 ** XSB is free software; you can redistribute it and/or modify it under the
00008 ** terms of the GNU Library General Public License as published by the Free
00009 ** Software Foundation; either version 2 of the License, or (at your option)
00010 ** any later version.
00011 ** 
00012 ** XSB is distributed in the hope that it will be useful, but WITHOUT ANY
00013 ** WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00014 ** FOR A PARTICULAR PURPOSE.  See the GNU Library General Public License for
00015 ** more details.
00016 ** 
00017 ** You should have received a copy of the GNU Library General Public License
00018 ** along with XSB; if not, write to the Free Software Foundation,
00019 ** Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00020 **
00021 ** $Id: setjmp_xsb.h,v 1.6 2005/10/12 23:06:26 tswift Exp $
00022 ** 
00023 */
00024 
00025 
00026 /*
00027   This file tries to do the right job with inclusion of setjmp.h
00028   Strangely, some compilers require _POSIX_C_SOURCE options in order for
00029   sigsetjmp to be defined.
00030   We don't define _POSIX_C_SOURCE globally because some XSB files don't compile
00031   with it.
00032 */
00033 
00034 
00035 #ifndef SETJMP_XSB_INCLUDED
00036 
00037 #define SETJMP_XSB_INCLUDED
00038 
00039 /* need _POSIX_C_SOURCE for setjmp.h to define the right stuff with gcc */
00040 #ifndef WIN_NT
00041 
00042 #if (!defined(_POSIX_C_SOURCE) && !defined(SOLARIS))
00043 #define _POSIX_C_SOURCE  1
00044 
00045 /* needed to make sure feature.h is included */
00046 #ifdef _FEATURES_H
00047 #undef _FEATURES_H
00048 #endif
00049 
00050 #endif /* _POSIX_C_SOURCE / SOLARIS */
00051 
00052 #endif /* WIN_NT */
00053 
00054 #include <setjmp.h> 
00055 
00056 #endif /* SETJMP_XSB_INCLUDED */
00057 

Generated on Wed Jul 26 13:30:42 2006 for XSB by  doxygen 1.4.5