/* * Filename: dtoolbase.h * Created by: drose (12Sep00) * */ /* This file is included at the beginning of every header file and/or C or C++ file. It must be compilable for C as well as C++ files, so no C++-specific code or syntax can be put here. See dtoolbase_cc.h for C++-specific stuff. */ #ifndef DTOOLBASE_H #define DTOOLBASE_H #include #ifdef WIN32_VC /* These warning pragmas must appear before anything else for VC++ to respect them. Sheesh. */ /* C4231: extern before template instantiation */ /* For some reason, this particular warning won't disable. */ #pragma warning (disable : 4231) /* C4786: 255 char debug symbols */ #pragma warning (disable : 4786) /* C4251: needs dll interface */ #pragma warning (disable : 4251) /* C4503: decorated name length exceeded */ #pragma warning (disable : 4503) /* C4305: truncation from 'const double' to 'float' */ #pragma warning (disable : 4305) #endif /* WIN32_VC */ #include "dtoolsymbols.h" #ifdef HAVE_MALLOC_H #include #endif #ifdef HAVE_ALLOCA_H #include #endif #ifdef HAVE_UNISTD_H #include #endif #ifdef HAVE_IO_H #include #endif #ifdef HAVE_MINMAX_H #include #endif #ifdef HAVE_SYS_TYPES_H #include #endif #ifdef CPPPARSER #include #endif /* We define the macros BEGIN_PUBLISH and END_PUBLISH to bracket functions and global variable definitions that are to be published via interrogate to scripting languages. */ #ifdef CPPPARSER #define BEGIN_PUBLISH __begin_publish #define END_PUBLISH __end_publish #else #define BEGIN_PUBLISH #define END_PUBLISH #endif #ifdef __cplusplus #include "dtoolbase_cc.h" #endif #endif