fix __SUNCC__ definition; added wxCHECK_SUNCC_VERSION

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-06-22 13:58:05 +00:00
parent f6e3890101
commit 2686d9339b
3 changed files with 28 additions and 8 deletions

View File

@@ -357,13 +357,11 @@
# endif
# endif /* SGI */
# if defined(sun) || defined(__SUN__)
# ifndef __GNUG__
# ifndef __SUNCC__
# define __SUNCC__
# endif /* Sun CC */
# endif
# endif /* Sun */
# if defined(__SUNPRO_CC)
# ifndef __SUNCC__
# define __SUNCC__ __SUNPRO_CC
# endif /* Sun CC */
# endif /* Sun CC */
# ifdef __EMX__
# define OS2EMX_PLAIN_CHAR
@@ -558,6 +556,18 @@
# define wxCHECK_W32API_VERSION(maj, min) (0)
#endif
/**
This is similar to wxCHECK_GCC_VERSION but for Sun CC compiler.
*/
#ifdef __SUNCC__
/*
__SUNCC__ is 0xVRP where V is major version, R release and P patch level
*/
#define wxCHECK_SUNCC_VERSION(maj, min) (__SUNCC__ >= (((maj)<<8) | ((min)<<4)))
#else
#define wxCHECK_SUNCC_VERSION(maj, min) (0)
#endif
#if defined (__WXMSW__)
# if !defined(__WATCOMC__)
# define wxHAVE_RAW_BITMAP