Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

pandatool/src/maya/pre_maya_include.h

Go to the documentation of this file.
00001 // Filename: pre_maya_include.h
00002 // Created by:  drose (11Apr02)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 // This header file defines a few things that are necessary to define
00020 // before including any Maya headers, just to work around some of
00021 // Maya's assumptions about the compiler.  It must not try to protect
00022 // itself from multiple inclusion with #ifdef .. #endif, since it must
00023 // be used each time it is included.
00024 
00025 // Maya will try to typedef bool unless this symbol is defined.
00026 #ifndef _BOOL
00027 #define _BOOL 1
00028 #endif
00029 
00030 // Maya tries to make a forward declaration for class ostream, but
00031 // this is not necessarily a class!  Curses.  We can't use any of the
00032 // built-in Maya stream operators, and we have to protect ourselves
00033 // from them.
00034 
00035 // In windows, the antiquated headers define completely unrelated (and
00036 // incompatible) classes from those declared in the new headers.  On
00037 // the other hand, in gcc the antiquated headers seem to be references
00038 // to the new template classes, so under gcc we also have to declare
00039 // typedefs to make this work.
00040 #ifdef __GNUC__
00041 #ifndef PRE_MAYA_INCLUDE_H
00042 #define PRE_MAYA_INCLUDE_H
00043 #include <iostream.h>
00044 typedef ostream maya_ostream;
00045 typedef istream maya_istream;
00046 #endif
00047 #endif  // __GNUC__
00048 
00049 #define ostream maya_ostream
00050 #define istream maya_istream

Generated on Fri May 2 03:21:20 2003 for Panda-Tool by doxygen1.3