Kokkos_ConfigDefs.hpp

00001 //@HEADER
00002 // ************************************************************************
00003 // 
00004 //          Kokkos: A Fast Kernel Package
00005 //              Copyright (2004) Sandia Corporation
00006 // 
00007 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
00008 // license for use of this work by or on behalf of the U.S. Government.
00009 // 
00010 // This library is free software; you can redistribute it and/or modify
00011 // it under the terms of the GNU Lesser General Public License as
00012 // published by the Free Software Foundation; either version 2.1 of the
00013 // License, or (at your option) any later version.
00014 //  
00015 // This library is distributed in the hope that it will be useful, but
00016 // WITHOUT ANY WARRANTY; without even the implied warranty of
00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018 // Lesser General Public License for more details.
00019 //  
00020 // You should have received a copy of the GNU Lesser General Public
00021 // License along with this library; if not, write to the Free Software
00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00023 // USA
00024 // Questions? Contact Michael A. Heroux (maherou@sandia.gov) 
00025 // 
00026 // ************************************************************************
00027 //@HEADER
00028 
00029 #ifndef KOKKOS_CONFIGDEFS_H
00030 #define KOKKOS_CONFIGDEFS_H
00031 
00032 #ifndef TRILINOS_NO_CONFIG_H
00033                                                                                 
00034 /*
00035  * The macros PACKAGE, PACKAGE_NAME, etc, get defined for each package and need to
00036  * be undef'd here to avoid warnings when this file is included from another package.
00037  * KL 11/25/02
00038  */
00039 #ifdef PACKAGE
00040 #undef PACKAGE
00041 #endif
00042                                                                                 
00043 #ifdef PACKAGE_NAME
00044 #undef PACKAGE_NAME
00045 #endif
00046 
00047 #ifdef PACKAGE_BUGREPORT
00048 #undef PACKAGE_BUGREPORT
00049 #endif
00050                                                                                 
00051 #ifdef PACKAGE_STRING
00052 #undef PACKAGE_STRING
00053 #endif
00054                                                                                 
00055 #ifdef PACKAGE_TARNAME
00056 #undef PACKAGE_TARNAME
00057 #endif
00058                                                                                 
00059 #ifdef PACKAGE_VERSION
00060 #undef PACKAGE_VERSION
00061 #endif
00062                                                                                 
00063 #ifdef VERSION
00064 #undef VERSION
00065 #endif
00066                                                                                 
00067 #include <Kokkos_config.h>
00068 #include <Teuchos_ConfigDefs.hpp>
00069 
00070 #ifdef HAVE_STRING
00071 # include <string>
00072 #else
00073 # include <string.h>
00074 #endif
00075 
00076 #ifdef HAVE_CASSERT
00077 # include <cassert>
00078 #else
00079 # include <assert.h>
00080 #endif
00081 
00082 #ifdef HAVE_IOSTREAM
00083 # include <iostream>
00084 #else
00085 # include <iostream.h>
00086 #endif
00087 
00088 #else /*TRILINOS_NO_CONFIG_H is defined*/
00089 
00090 #include <string>
00091 #ifdef ICL
00092 # include <time.h>
00093 #else
00094 # include <sys/time.h>
00095 # ifndef MINGW
00096 #   include <sys/resource.h>
00097 # endif
00098 #endif
00099 #include <cassert>
00100 #include <iostream>
00101 
00102 #endif /*ndef TRILINOS_NO_CONFIG_H */
00103 
00104 #include <cstddef> 
00105 
00106 #endif /* KOKKOS_CONFIGDEFS_H */