00001 //----------------------------------------------------------------------------- 00002 // 00003 // Copyright (c) 1998 - 2007, The Regents of the University of California 00004 // Produced at the Lawrence Livermore National Laboratory 00005 // All rights reserved. 00006 // 00007 // This file is part of PyCXX. For details,see http://cxx.sourceforge.net/. The 00008 // full copyright notice is contained in the file COPYRIGHT located at the root 00009 // of the PyCXX distribution. 00010 // 00011 // Redistribution and use in source and binary forms, with or without 00012 // modification, are permitted provided that the following conditions are met: 00013 // 00014 // - Redistributions of source code must retain the above copyright notice, 00015 // this list of conditions and the disclaimer below. 00016 // - Redistributions in binary form must reproduce the above copyright notice, 00017 // this list of conditions and the disclaimer (as noted below) in the 00018 // documentation and/or materials provided with the distribution. 00019 // - Neither the name of the UC/LLNL nor the names of its contributors may be 00020 // used to endorse or promote products derived from this software without 00021 // specific prior written permission. 00022 // 00023 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00024 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00025 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00026 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OF THE UNIVERSITY OF 00027 // CALIFORNIA, THE U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR 00028 // ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00029 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00030 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00031 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00032 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00033 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 00034 // DAMAGE. 00035 // 00036 //----------------------------------------------------------------------------- 00037 00038 #ifndef __PyCXX_wrap_python_hxx__ 00039 #define __PyCXX_wrap_python_hxx__ 00040 00041 // On some platforms we have to include time.h to get select defined 00042 #if !defined(__WIN32__) && !defined(WIN32) && !defined(_WIN32) && !defined(_WIN64) 00043 #include <sys/time.h> 00044 #endif 00045 00046 // Prevent multiple conflicting definitions of swab from stdlib.h and unistd.h 00047 #if defined(__sun) || defined(sun) 00048 #if defined(_XPG4) 00049 #undef _XPG4 00050 #endif 00051 #endif 00052 00053 // Python.h will redefine these and generate warning in the process 00054 #undef _XOPEN_SOURCE 00055 #undef _POSIX_C_SOURCE 00056 00057 // pull in python definitions 00058 #include <Python.h> 00059 00060 #endif