Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef ROSPACK_MACROS_H_
00029 #define ROSPACK_MACROS_H_
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 #if defined(_MSC_VER)
00041 #define ROS_HELPER_IMPORT __declspec(dllimport)
00042 #define ROS_HELPER_EXPORT __declspec(dllexport)
00043 #define ROS_HELPER_LOCAL
00044 #elif __GNUC__ >= 4
00045 #define ROS_HELPER_IMPORT __attribute__ ((visibility("default")))
00046 #define ROS_HELPER_EXPORT __attribute__ ((visibility("default")))
00047 #define ROS_HELPER_LOCAL __attribute__ ((visibility("hidden")))
00048 #else
00049 #define ROS_HELPER_IMPORT
00050 #define ROS_HELPER_EXPORT
00051 #define ROS_HELPER_LOCAL
00052 #endif
00053
00054
00055 #ifdef _MSC_VER
00056 #pragma warning(disable:4251)
00057 #pragma warning(disable:4275)
00058 #pragma warning(disable:4514) // unreferenced inline function has been removed
00059 #pragma warning(disable:4668) // warnings about used, but not defined macros, replacing with 0
00060 #pragma warning(disable:4710) // function not inlined
00061 #pragma warning(disable:4738) // storing floats, memory splitting, possible loss in performance
00062 #pragma warning(disable:4820) // structs and padding
00063 #endif
00064
00065 #ifdef ROS_BUILD_STATIC_LIBS // ros is being built around shared libraries
00066 #define ROSPACK_DECL
00067 #else // ros is being built around shared libraries
00068 #ifdef rospack_EXPORTS // we are building a shared lib/dll
00069 #define ROSPACK_DECL ROS_HELPER_EXPORT
00070 #else // we are using shared lib/dll
00071 #define ROSPACK_DECL ROS_HELPER_IMPORT
00072 #endif
00073 #endif
00074
00075 #endif