From: randomswdev Date: Sat, 27 Oct 2018 13:28:59 +0000 (+0200) Subject: system.h: use proper setting with Sun C++ as well X-Git-Tag: curl-7_62_0~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d8dad1a9d79d60e021f0c4e0f66bf5d51fb3c4e;p=thirdparty%2Fcurl.git 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 --- diff --git a/include/curl/system.h b/include/curl/system.h index a54fd584ff..1e555ec19e 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) || \