diff options
Diffstat (limited to 'cpp/include/IceUtil/Config.h')
-rw-r--r-- | cpp/include/IceUtil/Config.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/cpp/include/IceUtil/Config.h b/cpp/include/IceUtil/Config.h new file mode 100644 index 00000000000..d2984e60190 --- /dev/null +++ b/cpp/include/IceUtil/Config.h @@ -0,0 +1,79 @@ +// ********************************************************************** +// +// Copyright (c) 2001 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#ifndef ICE_UTIL_CONFIG_H +#define ICE_UTIL_CONFIG_H + +#if defined(WIN32) + +# include <windows.h> + +// '...' : forcing value to bool 'true' or 'false' (performance warning) +# pragma warning( disable : 4800 ) +// ... identifier was truncated to '255' characters in the debug information +# pragma warning( disable : 4786 ) +// 'this' : used in base member initializer list +# pragma warning( disable : 4355 ) +// class ... needs to have dll-interface to be used by clients of class ... +# pragma warning( disable : 4251 ) +// ... : inherits ... via dominance +# pragma warning( disable : 4250 ) +// non dll-interface class ... used as base for dll-interface class ... +# pragma warning( disable : 4275 ) + + +#elif defined(__linux__) && defined(i386) + +// Nothing here yet + +#else + +# error "unsupported operating system or platform" + +#endif + +// +// Some include files we need almost everywhere +// +#include <cassert> + +// +// We need Threads/C++ +// +#include <JTC/JTC.h> + +// +// By deriving from this class, other classes are made non-copyable +// +namespace IceUtil +{ + +class noncopyable +{ +protected: + + noncopyable() { } + ~noncopyable() { } // May not be virtual! Classes without virtual operations also derive from noncopyable. + +private: + + noncopyable(const noncopyable&); + const noncopyable& operator=(const noncopyable&); +}; + +} + +// +// The Ice version +// +#define ICE_STRING_VERSION "0.0.1" +#define ICE_INT_VERSION 0x00000001 + +#endif |