[6916] Fixed typos in spell checking code.
[getmangos.git] / dep / ACE_wrappers / ace / Versioned_Namespace.h
blob542254876ffa667650027fcc4b78f449dfb9c6b0
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Versioned_Namespace.h
7 * $Id$
9 * Versioned namespace support.
11 * Useful for preventing conflicts when using a third party library.
13 * @author Ossama Othman <ossama@dre.vanderbilt.edu>
15 //=============================================================================
17 #ifndef ACE_VERSIONED_NAMESPACE_H
18 #define ACE_VERSIONED_NAMESPACE_H
20 #ifndef ACE_CONFIG_MACROS_H
21 # error This header is only meant to be included by or after "ace/config-lite.h".
22 #endif /* !ACE_CONFIG_LITE_H */
25 #if defined (ACE_HAS_VERSIONED_NAMESPACE) && ACE_HAS_VERSIONED_NAMESPACE == 1
27 # ifndef ACE_VERSIONED_NAMESPACE_NAME
28 //# include "ace/Version.h"
30 // Preprocessor symbols will not be expanded if they are
31 // concatenated. Force the preprocessor to expand them during the
32 // argument prescan by calling a macro that itself calls another that
33 // performs the actual concatenation.
34 # define ACE_MAKE_VERSIONED_NAMESPACE_NAME_IMPL(MAJOR,MINOR,BETA) ACE_ ## MAJOR ## _ ## MINOR ## _ ## BETA
35 # define ACE_MAKE_VERSIONED_NAMESPACE_NAME(MAJOR,MINOR,BETA) ACE_MAKE_VERSIONED_NAMESPACE_NAME_IMPL(MAJOR,MINOR,BETA)
36 # define ACE_VERSIONED_NAMESPACE_NAME ACE_MAKE_VERSIONED_NAMESPACE_NAME(ACE_MAJOR_VERSION,ACE_MINOR_VERSION,ACE_BETA_VERSION)
37 # endif /* !ACE_VERSIONED_NAMESPACE_NAME */
39 # define ACE_BEGIN_VERSIONED_NAMESPACE_DECL namespace ACE_VERSIONED_NAMESPACE_NAME {
40 # define ACE_END_VERSIONED_NAMESPACE_DECL } \
41 using namespace ACE_VERSIONED_NAMESPACE_NAME;
43 #else
45 # define ACE_VERSIONED_NAMESPACE_NAME
46 # define ACE_BEGIN_VERSIONED_NAMESPACE_DECL
47 # define ACE_END_VERSIONED_NAMESPACE_DECL
49 #endif /* ACE_HAS_VERSIONED_NAMESPACE */
51 #endif /* !ACE_VERSIONED_NAMESPACE_H */