00001 /***************************************************************************** 00002 00003 The following code is derived, directly or indirectly, from the SystemC 00004 source code Copyright (c) 1996-2006 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.4 (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 // $Log: sc_boost.h,v $ 00036 // Revision 1.1.1.1 2006/12/15 20:31:36 acg 00037 // SystemC 2.2 00038 // 00039 // Revision 1.3 2006/01/13 18:44:29 acg 00040 // Added $Log to record CVS changes into the source. 00041 // 00042 00043 #ifndef SC_BOOST_H 00044 #define SC_BOOST_H 00045 00046 // namespace sc_dp { This is off because of bugs with gcc 2.9x 00047 00048 // SET THE NAME OF OBJECTS THAT THE BOOST LIBRARY WILL PRODUCE AND INCLUDE IT: 00049 00050 #if defined(_MSC_VER) && !defined(__ICL) && !defined(__COMO__) 00051 # pragma warning(disable: 4786) // identifier truncated in debug info 00052 # pragma warning(disable: 4710) // function not inlined 00053 # pragma warning(disable: 4711) // funct. selected for auto-inline expansion 00054 # pragma warning(disable: 4514) // unreferenced inline removed 00055 #endif 00056 00057 #include "sysc/packages/boost/bind.hpp" 00058 #include "sysc/packages/boost/ref.hpp" 00059 00060 #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) 00061 # pragma warning(push, 3) 00062 #endif 00063 00064 #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) 00065 # pragma warning(pop) 00066 #endif 00067 00068 // } // namespace sc_dp This is off because of bugs with gcc 2.9x 00069 00070 // macros to help avoid direct user code dependencies on boost lib 00071 00072 #define sc_bind boost::bind 00073 #define sc_ref(r) boost::ref(r) 00074 #define sc_cref(r) boost::cref(r) 00075 00076 #endif // SC_BOOST_H