max_pre_include.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. // Filename: pre_maya_include.h
  2. // Created by: drose (11Apr02)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) Carnegie Mellon University. All rights reserved.
  8. //
  9. // All use of this software is subject to the terms of the revised BSD
  10. // license. You should have received a copy of this license along
  11. // with this source code in a file named "LICENSE."
  12. //
  13. ////////////////////////////////////////////////////////////////////
  14. // This header file defines a few things that are necessary to define
  15. // before including any Maya headers, just to work around some of
  16. // Max's assumptions about the compiler. It must not try to protect
  17. // itself from multiple inclusion with #ifdef .. #endif, since it must
  18. // be used each time it is included.
  19. // Max will try to typedef bool unless this symbol is defined.
  20. #ifndef _BOOL
  21. #define _BOOL 1
  22. #endif
  23. // Max tries to make a forward declaration for class ostream, but
  24. // this is not necessarily a class! Curses. We can't use any of the
  25. // built-in Max stream operators, and we have to protect ourselves
  26. // from them.
  27. #define ostream max_ostream
  28. #define istream max_istream