Skip to content

Commit

Permalink
Sun Studio support in buildver.c
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 13, 2009
1 parent 503943b commit bde320e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions buildver.c
Expand Up @@ -31,6 +31,10 @@
# define VERSTR2(x) #x
# define VERSTR(x) VERSTR2(x)
# define COMPILERVER " " VERSTR(__GNUC__) "." VERSTR(__GNUC_MINOR__) "." VERSTR(__GNUC_PATCHLEVEL__)
#elif (defined __SUNPRO_C)
# define VERSTR2(x) #x
# define VERSTR(x) VERSTR2(x)
# define COMPILERVER " " VERSTR(__SUNPRO_C)
#elif (defined __VERSION__)
# define COMPILERVER " " __VERSION__
#else
Expand All @@ -50,6 +54,8 @@
#define COMPILER "GCC"
#elif (defined _MSC_VER)
#define COMPILER "Visual Studio"
#elif (defined __SUNPRO_C)
#define COMPILER "Sun Studio"
#else
#error Please define your platform.
#endif
Expand Down

0 comments on commit bde320e

Please sign in to comment.