//Copyright (c) 1996 A. Michael Berman. All Rights Reserved. //This code is from "Data Structures via C++: Objects by Evolution", to be //published by Oxford University Press USA. Permission is hearby granted to //use this code for any educational, non-commercial purpose, provided this //notice remains intact. //A. Michael Berman, Rowan College of New Jersey, berman@rowan.edu // compid.h: Compiler Compatibility File // from: Data Structures via C++: Objects by Evolution // The purpose of this file is to determine which compiler is being used, // and set various flags for conditional compilation based on the information // determined. // You can add your own compiler by either identifying a macro definition // that is predefined by your compiler, or by "hand defining" a macro, using // a Make file or whatever mechanism you use to compile // The following compilers are supported in this file as distributed: // Borland Turbo C++ 3.0 // Borland C++ 4.0.x // Borland C++ 4.5.x // Set the following flag if the compiler requires the source of templates // in order to instantiate them. #ifdef __TURBOC__ #define __MB_TEMPLATES_NEED_SRC__ #endif // Set the following flag if the compiler does not support nested class // definitions #if __TURBOC__ < 0x410 #define __MB_NO_NESTED_CLASS__ #endif // Set the following flag if you want the header file to declare inline // functions to simulate Borland-style random numbers #ifdef __UNIX__ #define __MB_SIMULATE_BORLAND_RANDOM__ #endif #if __GNUC__ == 2 #define __MB_COMPILER_DEFINES_BOOL__ #define __MB_SIMULATE_BORLAND_RANDOM__ #endif #if __TURBOC__ >= 0x500 #define __MB_COMPILER_DEFINES_BOOL__ #endif