INTRODUCTION ============ WATBORL is a set of macros and simple procedures that allows many programs written for Borland C to compile with the Watcom C compiler. There are a number of differences between the two compilers' libraries, but many of them are just name differences. Using WATBORL can let you compile many simple Borland C programs without any code changes. The WATBORL macros provide compatibility with many console I/O and DOS functions. They provide include file and function renaming where a name change is the entire difference between the two. Several functions have slightly different semantics, however, and can't be made compatible with just a macro. Programs that use these functions can link in a C source file that provides simple translation functions. Some renamed functions are not exactly the same as the Borland equivalents. Be sure to read the other files in this package to see whether these differences will affect your program. There is one file included in the package, pconio.h, that puts a Borland- compatible front on the Scitech console output library. This is an alternative underlying console library that may work better than the Watcom library in some cases, but requires the consl11.zip package which must be obtained and installed separately. I wrote these include files to assist in porting a few programs to Watcom C. They are far from complete, but were sufficient for my own purposes. I hope that they provide a starting point for porting your own programs. If you add to them, please send your additions to me and I'll include them in a future release. The macros were tested on Borland C ver. 3.1 to compiled with Watcom C ver. 10.6. USAGE ===== Unpack the archive into a directory accessible by your compiler (I suggest \WATCOM\WATBORL). A few files in the package have hard-coded paths to Watcom include files. You must edit these to point to your own installed Watcom include directory. Modify the makefile of your target program to add this directory to the compiler's include path before other directories (especially \WATCOM\H). This can be as simple as adding the flag -I \WATCOM\WATBORL to the start of the WCL command line. This is all that is required to allow some programs to compile. Other programs require that the file wconio.c be compiled in. If you get link errors in your program, add the \WATCOM\WATBORL\WCONIO.C file to your build. This can be as simple as appending the name \WATCOM\WATBORL\WCONIO.C to the wcl command line. To use pconio.h with the Scitech console output library, follow the instructions included with that library but replace includes of console.h with pconio.h, or rename pconio.h to conio.h and include that instead. Both console.h and pconio.h (or the renamed version) must be in the wcl include path (see above). COPYRIGHT ========= The WATBORL files are placed into the public domain by the author, Dan Fandrich. For more information, see my WWW page . Dan Fandrich dan@fch.wimsey.bc.ca November 22, 1997