WATCOM.H 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed
  9. // in the hope that it will be useful, but with permitted additional restrictions
  10. // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT
  11. // distributed with this program. You should have received a copy of the
  12. // GNU General Public License along with permitted additional restrictions
  13. // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
  14. /* $Header: /CounterStrike/WATCOM.H 1 3/03/97 10:26a Joe_bostic $ */
  15. /***********************************************************************************************
  16. *** 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 ***
  17. ***********************************************************************************************
  18. * *
  19. * Project Name : Command & Conquer *
  20. * *
  21. * File Name : WATCOM.H *
  22. * *
  23. * Programmer : Joe L. Bostic *
  24. * *
  25. * Start Date : 03/12/95 *
  26. * *
  27. * Last Update : March 12, 1995 [JLB] *
  28. * *
  29. *---------------------------------------------------------------------------------------------*
  30. * Functions: *
  31. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  32. #ifndef WATCOM_H
  33. #define WATCOM_H
  34. #if (0)
  35. // Turn all warnings into errors.
  36. #pragma warning * 0
  37. // Disables warning when "sizeof" is used on an object with virtual functions.
  38. #pragma warning 549 9
  39. // Disable the "Integral value may be truncated during assignment or initialization".
  40. #pragma warning 389 9
  41. // Allow constructing a temporary to be used as a parameter.
  42. #pragma warning 604 9
  43. // Disable the construct resolved as an expression warning.
  44. #pragma warning 595 9
  45. // Disable the strange "construct resolved as a declaration/type" warning.
  46. #pragma warning 594 9
  47. // Disable the "pre-compiled header file cannot be used" warning.
  48. #pragma warning 698 9
  49. // Disable the "temporary object used to initialize a non-constant reference" warning.
  50. #pragma warning 665 9
  51. // Disable the "pointer or reference truncated by cast. Cast is supposed to REMOVE warnings, not create them.
  52. #pragma warning 579 9
  53. // Disable the warning that suggests a null destructor be placed in class definition.
  54. #pragma warning 656 9
  55. // Disable the warning about moving empty constructors/destructors to the class declaration.
  56. #pragma warning 657 9
  57. // No virtual destructor is not an error in C&C.
  58. #pragma warning 004 9
  59. // Turns off unreferenced function parameter warning.
  60. //#pragma off(unreferenced)
  61. // Fix deficiency in Watcom so that true/false will be defined.
  62. #ifndef __BORLANDC__
  63. #ifndef TRUE_FALSE_DEFINED
  64. #define TRUE_FALSE_DEFINED
  65. enum {false=0,true=1};
  66. typedef int bool;
  67. #endif
  68. #endif
  69. #endif
  70. #endif