rtt-config.h

00001 #ifndef RTT_CONFIG_H
00002 #define RTT_CONFIG_H
00003 
00004 #define RTT_VERSION       1.12.1
00005 #define RTT_VERSION_MAJOR 1
00006 #define RTT_VERSION_MINOR 12
00007 #define RTT_VERSION_PATCH 1
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 # elif defined( __MINGW32__ ) && defined( __i386__ )
00028 #  define OROBLD_OS_ARCH_i386
00029 # elif defined( WIN32 )
00030 #  define OROBLD_OS_ARCH_i386
00031 # else
00032 #  error "Unknown Processor Architecture"
00033 #  define OROBLD_OS_ARCH_unknown
00034 # endif
00035 
00036 
00037 //
00038 // See: <http://gcc.gnu.org/wiki/Visibility>
00039 //
00040 #define RTT_GCC_HASVISIBILITY
00041 #if defined(__GNUG__) && defined(__unix__) && defined(RTT_GCC_HASVISIBILITY)
00042 
00043 # if defined(RTT_DLL_EXPORT)
00044    // Use RTT_API for normal function exporting
00045 #  define RTT_API    __attribute__((visibility("default")))
00046 
00047    // Use RTT_EXPORT for static template class member variables
00048    // They must always be 'globally' visible.
00049 #  define RTT_EXPORT __attribute__((visibility("default")))
00050 
00051    // Use RTT_HIDE to explicitly hide a symbol
00052 #  define RTT_HIDE   __attribute__((visibility("hidden")))
00053 
00054 # else
00055 #  define RTT_API
00056 #  define RTT_EXPORT __attribute__((visibility("default")))
00057 #  define RTT_HIDE   __attribute__((visibility("hidden")))
00058 # endif
00059 #else
00060    // Win32 and NOT GNU
00061 # if defined( WIN32 ) && !defined ( __MINGW32__ )
00062 #  if defined(RTT_DLL_EXPORT)
00063 #   define RTT_API    __declspec(dllexport)
00064 #   define RTT_EXPORT __declspec(dllexport)
00065 #   define RTT_HIDE   
00066 #  else
00067 #   define RTT_API   __declspec(dllimport)
00068 #   define RTT_EXPORT __declspec(dllexport)
00069 #   define RTT_HIDE 
00070 #  endif
00071 # else
00072 #  define RTT_API
00073 #  define RTT_EXPORT
00074 #  define RTT_HIDE
00075 # endif
00076 #endif
00077 
00078 #endif
Generated on Thu Dec 23 13:22:38 2010 for Orocos Real-Time Toolkit by  doxygen 1.6.3