00001
00002
00003
00004
00005
00006
00007
00008 #ifndef ACE_EXPORT_H
00009 #define ACE_EXPORT_H
00010
00011 #include "ace/config-lite.h"
00012
00013 #if defined (ACE_AS_STATIC_LIBS)
00014
00015 # if !defined (ACE_HAS_DLL)
00016 # define ACE_HAS_DLL 0
00017 # endif
00018 #else
00019 # if !defined (ACE_HAS_DLL)
00020 # define ACE_HAS_DLL 1
00021 # endif
00022 #endif
00023
00024 #if defined (ACE_HAS_DLL)
00025 # if (ACE_HAS_DLL == 1)
00026 # if defined (ACE_BUILD_DLL)
00027 # define ACE_Export ACE_Proper_Export_Flag
00028 # define ACE_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
00029 # define ACE_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
00030 # else
00031 # define ACE_Export ACE_Proper_Import_Flag
00032 # define ACE_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
00033 # define ACE_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
00034 # endif
00035 # else
00036 # define ACE_Export
00037 # define ACE_SINGLETON_DECLARATION(T)
00038 # define ACE_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
00039 # endif
00040 #else
00041 # define ACE_Export
00042 # define ACE_SINGLETON_DECLARATION(T)
00043 # define ACE_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
00044 #endif
00045
00046
00047 #if defined (__TANDEM) && defined (USE_EXPLICIT_EXPORT)
00048 #define ACE_NAMESPACE_STORAGE_CLASS ACE_EXPORT_MACRO extern
00049 #else
00050 #define ACE_NAMESPACE_STORAGE_CLASS extern ACE_EXPORT_MACRO
00051 #endif
00052
00053 #if defined (__ACE_INLINE__)
00054 # if defined (_MSC_VER) || defined (__MINGW32__) || defined (CYGWIN32) || \
00055 (defined (__SUNPRO_CC) && __SUNPRO_CC >= 0x560) || \
00056 (defined (__HP_aCC) && (__HP_aCC >= 60500))
00057 # define ACE_NAMESPACE_INLINE_FUNCTION inline
00058 # else
00059 # define ACE_NAMESPACE_INLINE_FUNCTION ACE_NAMESPACE_STORAGE_CLASS inline
00060 # endif
00061 # define ACE_INLINE_TEMPLATE_FUNCTION inline
00062 #else
00063 # define ACE_NAMESPACE_INLINE_FUNCTION ACE_NAMESPACE_STORAGE_CLASS
00064
00065 # if defined (_MSC_VER) || defined (__BORLANDC__)
00066 # define ACE_INLINE_TEMPLATE_FUNCTION ACE_Export
00067 # else
00068 # define ACE_INLINE_TEMPLATE_FUNCTION
00069 # endif
00070 #endif
00071
00072 #endif
00073
00074