00001
00002
00003
00004
00005
00006 #ifndef OPENDDS_RTPS_UDP_EXPORT_H
00007 #define OPENDDS_RTPS_UDP_EXPORT_H
00008
00009 #include "ace/config-all.h"
00010
00011 #if defined (ACE_AS_STATIC_LIBS) && !defined (OPENDDS_RTPS_UDP_HAS_DLL)
00012 # define OPENDDS_RTPS_UDP_HAS_DLL 0
00013 #endif
00014
00015 #if !defined (OPENDDS_RTPS_UDP_HAS_DLL)
00016 # define OPENDDS_RTPS_UDP_HAS_DLL 1
00017 #endif
00018
00019 #if defined (OPENDDS_RTPS_UDP_HAS_DLL) && (OPENDDS_RTPS_UDP_HAS_DLL == 1)
00020 # if defined (OPENDDS_RTPS_UDP_BUILD_DLL)
00021 # define OpenDDS_Rtps_Udp_Export ACE_Proper_Export_Flag
00022 # define OPENDDS_RTPS_UDP_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
00023 # define OPENDDS_RTPS_UDP_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
00024 # else
00025 # define OpenDDS_Rtps_Udp_Export ACE_Proper_Import_Flag
00026 # define OPENDDS_RTPS_UDP_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
00027 # define OPENDDS_RTPS_UDP_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
00028 # endif
00029 #else
00030 # define OpenDDS_Rtps_Udp_Export
00031 # define OPENDDS_RTPS_UDP_SINGLETON_DECLARATION(T)
00032 # define OPENDDS_RTPS_UDP_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
00033 #endif
00034
00035
00036
00037 #if !defined (OPENDDS_RTPS_UDP_NTRACE)
00038 # if (ACE_NTRACE == 1)
00039 # define OPENDDS_RTPS_UDP_NTRACE 1
00040 # else
00041 # define OPENDDS_RTPS_UDP_NTRACE 0
00042 # endif
00043 #endif
00044
00045 #if (OPENDDS_RTPS_UDP_NTRACE == 1)
00046 # define OPENDDS_RTPS_UDP_TRACE(X)
00047 #else
00048 # if !defined (ACE_HAS_TRACE)
00049 # define ACE_HAS_TRACE
00050 # endif
00051 # define OPENDDS_RTPS_UDP_TRACE(X) ACE_TRACE_IMPL(X)
00052 # include "ace/Trace.h"
00053 #endif
00054
00055 #endif
00056
00057