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