00001 /***************************************************************************** 00002 00003 The following code is derived, directly or indirectly, from the SystemC 00004 source code Copyright (c) 1996-2004 by all Contributors. 00005 All Rights reserved. 00006 00007 The contents of this file are subject to the restrictions and limitations 00008 set forth in the SystemC Open Source License Version 2.3 (the "License"); 00009 You may not use this file except in compliance with such restrictions and 00010 limitations. You may obtain instructions on how to receive a copy of the 00011 License at http://www.systemc.org/. Software distributed by Contributors 00012 under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF 00013 ANY KIND, either express or implied. See the License for the specific 00014 language governing rights and limitations under the License. 00015 00016 *****************************************************************************/ 00017 00018 /***************************************************************************** 00019 00020 sc_boost.h -- Thread Semantics Provided By The Boost Library 00021 00022 Original Author: Stuart Swan, Cadence Design Systems, Inc 00023 00024 *****************************************************************************/ 00025 00026 /***************************************************************************** 00027 00028 MODIFICATION LOG - modifiers, enter your name, affiliation, date and 00029 changes you are making here. 00030 00031 Name, Affiliation, Date: 00032 Description of Modification: 00033 00034 *****************************************************************************/ 00035 00036 #ifndef SC_BOOST_H 00037 #define SC_BOOST_H 00038 00039 // namespace sc_dp { This is off because of bugs with gcc 2.9x 00040 00041 // SET THE NAME OF OBJECTS THAT THE BOOST LIBRARY WILL PRODUCE AND INCLUDE IT: 00042 00043 #if defined(_MSC_VER) && !defined(__ICL) && !defined(__COMO__) 00044 # pragma warning(disable: 4786) // identifier truncated in debug info 00045 # pragma warning(disable: 4710) // function not inlined 00046 # pragma warning(disable: 4711) // funct. selected for auto-inline expansion 00047 # pragma warning(disable: 4514) // unreferenced inline removed 00048 #endif 00049 00050 #include "systemc/packages/boost/bind.hpp" 00051 #include "systemc/packages/boost/ref.hpp" 00052 00053 #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) 00054 # pragma warning(push, 3) 00055 #endif 00056 00057 #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) 00058 # pragma warning(pop) 00059 #endif 00060 00061 // } // namespace sc_dp This is off because of bugs with gcc 2.9x 00062 00063 // macros to help avoid direct user code dependencies on boost lib 00064 00065 #define sc_bind boost::bind 00066 #define sc_ref(r) boost::ref(r) 00067 #define sc_cref(r) boost::cref(r) 00068 00069 #endif // SC_BOOST_H
1.2.18