summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorrandomswdev <randomswdev@users.noreply.github.com>2018-10-27 15:28:59 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-10-27 16:07:24 +0200
commit9d8dad1a9d79d60e021f0c4e0f66bf5d51fb3c4e (patch)
tree4d4f1ac96e376e3422ed714e8cf3b6507a354cf7 /include
parent75b94d77e8daedbe56249abfd2652cbbfcd08958 (diff)
downloadcurl-9d8dad1a9d79d60e021f0c4e0f66bf5d51fb3c4e.tar.gz
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
Diffstat (limited to 'include')
-rw-r--r--include/curl/system.h2
1 files changed, 1 insertions, 1 deletions
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) || \