71 lines
1.7 KiB
C
71 lines
1.7 KiB
C
/**
|
|
* @file include/ActivMiddleware/Config/Compilers/SunPro.h
|
|
*
|
|
* @brief SunPro C++ configuration file.
|
|
*/
|
|
|
|
#if (!defined ACTIV_CONFIG_COMPILERS_SUN_PRO_H)
|
|
#define ACTIV_CONFIG_COMPILERS_SUN_PRO_H
|
|
|
|
#if (__SUNPRO_CC < 0x512)
|
|
#error SunPro version not supported
|
|
#endif
|
|
|
|
#define ACTIV_COMPILER_NAME "SunPro C++ " ACTIV_STRINGIZE(__SUNPRO_CC)
|
|
|
|
#define ACTIV_BUILDING_DLL_EXPORTED_API
|
|
#define ACTIV_BUILDING_DLL_INLINE_API
|
|
#define ACTIV_BUILDING_DLL_LOCAL_API
|
|
#define ACTIV_USING_DLL_EXPORTED_API
|
|
#define ACTIV_USING_DLL_INLINE_API
|
|
#define ACTIV_USING_DLL_LOCAL_API
|
|
|
|
#define ACTIV_BUILDING_LIB_EXPORTED_API
|
|
#define ACTIV_BUILDING_LIB_INLINE_API
|
|
#define ACTIV_BUILDING_LIB_LOCAL_API
|
|
#define ACTIV_USING_LIB_EXPORTED_API
|
|
#define ACTIV_USING_LIB_INLINE_API
|
|
#define ACTIV_USING_LIB_LOCAL_API
|
|
|
|
#if (defined ACTIV_PROCESSOR_X86_64)
|
|
#define ACTIV_EXPLICIT_INSTANTIATE_SIZE_T
|
|
#endif
|
|
|
|
/**
|
|
* @brief Define rules for exporting template member functions.
|
|
*
|
|
* The Intel & Visual C++ compilers have different rules for __declspec exporting template
|
|
* instantiations from dlls. Use ACTIV_TEMPLATE_API as a workaround, e.g.
|
|
*
|
|
* class Example
|
|
* {
|
|
* template \<typename T\>
|
|
* ACTIV_TEMPLATE_API(MY_LIB_API) void Fn(T &);
|
|
* };
|
|
*
|
|
* @param a __declspec macro, e.g. ACTIV_BASE_API.
|
|
*/
|
|
#define ACTIV_TEMPLATE_API(a)
|
|
|
|
/**
|
|
* @brief Ensure a function is always inlined.
|
|
*/
|
|
#define ACTIV_FORCE_INLINE inline
|
|
|
|
/**
|
|
* @brief Ensure a function is never inlined.
|
|
*/
|
|
#define ACTIV_NEVER_INLINE
|
|
|
|
#define _XOPEN_SOURCE
|
|
#define _XOPEN_SOURCE_EXTENDED 1
|
|
#define __EXTENSIONS__
|
|
#define _POSIX_PTHREAD_SEMANTICS
|
|
|
|
#define __FUNCTION__ __func__
|
|
|
|
#define stricmp strcasecmp
|
|
#define strnicmp strncasecmp
|
|
|
|
#endif // (!defined ACTIV_CONFIG_COMPILERS_SUN_PRO_H)
|