rtt-config.h

00001 #ifndef RTT_CONFIG_H
00002 #define RTT_CONFIG_H
00003 
00004 #define RTT_VERSION       1.8.5
00005 #define RTT_VERSION_MAJOR 1
00006 #define RTT_VERSION_MINOR 8
00007 #define RTT_VERSION_PATCH 5
00008 
00009 // if not defined, show an error
00010 #ifndef OROCOS_TARGET
00011 // OROCOS_TARGET is only used to include the file targets/OROCOS_TARGET
00012 #error "You _must_ define OROCOS_TARGET to an installed target (for example: -DOROCOS_TARGET=gnulinux )"
00013 #endif
00014 
00015 #include "targets/rtt-target.h"
00016 
00017 // Detect the CPU we are compiling for
00018 # if defined( __GNUC__ ) && defined( __i386__ )
00019 #  define OROBLD_OS_ARCH_i386
00020 # elif defined( __GNUC__ ) && defined( __x86_64__ )
00021 #  define OROBLD_OS_ARCH_x86_64
00022 # elif defined( __GNUC__ ) && (defined( __powerpc__ ) || defined( __PPC__ ) )
00023 #  define OROBLD_OS_ARCH_ppc
00024 # elif defined( __GNUC__ ) && defined( __ia64__ )
00025 #  error "ia64 Is not yet supported, contact the orocos-dev mailinglist for further actions."
00026 #  define OROBLD_OS_ARCH_ia64
00027 # else
00028 #  error "Unknown Processor Architecture"
00029 #  define OROBLD_OS_ARCH_unknown
00030 # endif
00031 
00032 
00033 //
00034 // See: <http://gcc.gnu.org/wiki/Visibility>
00035 //
00036 #define RTT_GCC_HASVISIBILITY
00037 #if defined(__GNUG__) && defined(__unix__) && defined(RTT_GCC_HASVISIBILITY)
00038 
00039 # if defined(RTT_DLL_EXPORT)
00040    // Use RTT_API for normal function exporting
00041 #  define RTT_API    __attribute__((visibility("default")))
00042 
00043    // Use RTT_EXPORT for static template class member variables
00044    // They must always be 'globally' visible.
00045 #  define RTT_EXPORT __attribute__((visibility("default")))
00046 
00047    // Use RTT_HIDE to explicitly hide a symbol
00048 #  define RTT_HIDE   __attribute__((visibility("hidden")))
00049 
00050 # else
00051 #  define RTT_API
00052 #  define RTT_EXPORT __attribute__((visibility("default")))
00053 #  define RTT_HIDE   __attribute__((visibility("hidden")))
00054 # endif
00055 #else
00056    // NOT GNU
00057 #  define RTT_API
00058 #  define RTT_EXPORT
00059 #  define RTT_HIDE
00060 #endif
00061 
00062 #endif

Generated on Tue Aug 25 14:17:23 2009 for Orocos Real-Time Toolkit by  doxygen 1.5.8