From 9d8dad1a9d79d60e021f0c4e0f66bf5d51fb3c4e Mon Sep 17 00:00:00 2001 From: randomswdev Date: Sat, 27 Oct 2018 15:28:59 +0200 Subject: system.h: use proper setting with Sun C++ as well system.h selects the proper Sun settings when __SUNPRO_C is defined. The Sun compiler does not define it when compiling C++ files. I'm adding a check also on __SUNPRO_CC to allow curl to work properly also when used in a C++ project on Sun Solaris. Closes #3181 --- include/curl/system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/curl/system.h b/include/curl/system.h index a54fd584f..1e555ec19 100644 --- a/include/curl/system.h +++ b/include/curl/system.h @@ -298,7 +298,7 @@ # define CURL_PULL_SYS_TYPES_H 1 # define CURL_PULL_SYS_SOCKET_H 1 -#elif defined(__SUNPRO_C) /* Oracle Solaris Studio */ +#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) /* Oracle Solaris Studio */ # if !defined(__LP64) && (defined(__ILP32) || \ defined(__i386) || \ defined(__sparcv8) || \ -- cgit v1.2.3