// porting.h: make the CSC 270 simulation example portable // -- J. Clarke, June 1996 // Written in a hopeless attempt to reduce the work involved in // getting this example working on different systems. So far, // these are the environments I hope to make easy: GNU g++ on // Unix, Turbo C++ on DOS-Windows. // Problems encountered so far: // // 1. Turbo C++ doesn't define bool-true-false, even though the // the documentation describes it. #ifdef TURBO #ifndef true typedef int bool; #define true 1 #define false 0 #endif #endif