CnC_Remastered_Collection

Command and Conquer: Red Alert
Log | Files | Refs | README | LICENSE

WATCOM.H (4066B)


      1 //
      2 // Copyright 2020 Electronic Arts Inc.
      3 //
      4 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free 
      5 // software: you can redistribute it and/or modify it under the terms of 
      6 // the GNU General Public License as published by the Free Software Foundation, 
      7 // either version 3 of the License, or (at your option) any later version.
      8 
      9 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed 
     10 // in the hope that it will be useful, but with permitted additional restrictions 
     11 // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT 
     12 // distributed with this program. You should have received a copy of the 
     13 // GNU General Public License along with permitted additional restrictions 
     14 // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
     15 
     16 /* $Header: /CounterStrike/WATCOM.H 1     3/03/97 10:26a Joe_bostic $ */
     17 /***********************************************************************************************
     18  ***              C O N F I D E N T I A L  ---  W E S T W O O D  S T U D I O S               ***
     19  ***********************************************************************************************
     20  *                                                                                             *
     21  *                 Project Name : Command & Conquer                                            *
     22  *                                                                                             *
     23  *                    File Name : WATCOM.H                                                     *
     24  *                                                                                             *
     25  *                   Programmer : Joe L. Bostic                                                *
     26  *                                                                                             *
     27  *                   Start Date : 03/12/95                                                     *
     28  *                                                                                             *
     29  *                  Last Update : March 12, 1995 [JLB]                                         *
     30  *                                                                                             *
     31  *---------------------------------------------------------------------------------------------*
     32  * Functions:                                                                                  *
     33  * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
     34 
     35 #ifndef WATCOM_H
     36 #define WATCOM_H
     37 #if (0)
     38 
     39 // Turn all warnings into errors.
     40 #pragma warning * 0
     41 
     42 // Disables warning when "sizeof" is used on an object with virtual functions.
     43 #pragma warning 549 9
     44 
     45 // Disable the "Integral value may be truncated during assignment or initialization".
     46 #pragma warning 389 9
     47 
     48 // Allow constructing a temporary to be used as a parameter.
     49 #pragma warning 604 9
     50 
     51 // Disable the construct resolved as an expression warning.
     52 #pragma warning 595 9
     53 
     54 // Disable the strange "construct resolved as a declaration/type" warning.
     55 #pragma warning 594 9
     56 
     57 // Disable the "pre-compiled header file cannot be used" warning.
     58 #pragma warning 698 9
     59 
     60 // Disable the "temporary object used to initialize a non-constant reference" warning.
     61 #pragma warning 665 9
     62 
     63 // Disable the "pointer or reference truncated by cast. Cast is supposed to REMOVE warnings, not create them.
     64 #pragma warning 579 9
     65 
     66 // Disable the warning that suggests a null destructor be placed in class definition.
     67 #pragma warning 656 9
     68 
     69 // Disable the warning about moving empty constructors/destructors to the class declaration.
     70 #pragma warning 657 9
     71 
     72 // No virtual destructor is not an error in C&C.
     73 #pragma warning 004 9
     74 
     75 // Turns off unreferenced function parameter warning.
     76 //#pragma off(unreferenced)
     77 
     78 
     79 // Fix deficiency in Watcom so that true/false will be defined.
     80 #ifndef __BORLANDC__
     81 #ifndef TRUE_FALSE_DEFINED
     82 #define TRUE_FALSE_DEFINED
     83 enum {false=0,true=1};
     84 typedef int bool;
     85 #endif
     86 #endif
     87 
     88 #endif
     89 
     90 #endif