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_cmnhdr.h - Common header file containing handy pragmas, macros and 00021 definitions common to all SystemC source files. 00022 00023 Original Author: Amit Rao, Synopsys, Inc. 00024 00025 *****************************************************************************/ 00026 00027 /***************************************************************************** 00028 00029 MODIFICATION LOG - modifiers, enter your name, affiliation, date and 00030 changes you are making here. 00031 00032 Name, Affiliation, Date: 00033 Description of Modification: 00034 00035 *****************************************************************************/ 00036 00037 #ifndef SC_CMNHDR_H 00038 #define SC_CMNHDR_H 00039 00040 00041 // all windows 32-bit compilers should define WIN32 00042 00043 #if defined( _MSC_VER ) || defined( __BORLANDC__ ) 00044 #ifndef WIN32 00045 #define WIN32 00046 #endif 00047 #endif 00048 00049 // WIN64 is reserved for the future 64-bit OS 00050 00051 #ifdef WIN64 00052 #error WIN64 keyword is reserved for 64-bit Windows 00053 #endif 00054 00055 00056 // ---------------------------------------------------------------------------- 00057 00058 #ifdef _MSC_VER 00059 00060 // Disable VC++ warnings that are harmless 00061 00062 // this : used in base member initializer list 00063 #pragma warning(disable: 4355) 00064 00065 // new and delete warning when exception handling is turned on 00066 #pragma warning(disable: 4291) 00067 00068 // in many places implicit conversion to bool 00069 // from other integral types is performed 00070 #pragma warning(disable: 4800) 00071 00072 // unary minus operator applied to unsigned 00073 #pragma warning(disable: 4146) 00074 00075 // multiple copy constructors 00076 #pragma warning(disable: 4521) 00077 00078 00079 // Windows Version Build Option 00080 00081 #define _WIN32_WINNT 0x0400 00082 #include <Windows.h> 00083 00084 00085 // MSVC6.0 for() scope bug 00086 00087 #define for if( false ); else for 00088 00089 #endif 00090 00091 00092 // ---------------------------------------------------------------------------- 00093 00094 #ifdef __BORLANDC__ 00095 00096 // Windows Version Build Option 00097 00098 #define _WIN32_WINNT 0x0400 00099 #include <Windows.h> 00100 00101 #endif 00102 00103 00104 // ---------------------------------------------------------------------------- 00105 00106 #include <assert.h> 00107 #include <stdio.h> 00108 #include <stdlib.h> 00109 00110 00111 #endif 00112 00113 // Taf!
1.2.18