Files
externals/linux/include/ActivMiddleware/Config/Compilers/SunPro.h
T

81 lines
2.3 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 Declare an "uninitialized" variable such that it does not create a compilation warning.
*
* Certain compilers (e.g. gcc 3.4) are not "intelligent" enough to figure out that an uninitialized variable
* will be initialized before use in all code paths. Use this macro to declare and initialize such a variable
* with a dummy value to bypass such warnings. With compilers that do not suffer from this problem, this macro
* just declares the variable uninitialized.
*/
#define ACTIV_DECLARE_UNINITIALIZED_VARIABLE(type, name, dummyValue) type name
/**
* @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)