]> granicus.if.org Git - curl/commitdiff
system.h: use proper setting with Sun C++ as well
authorrandomswdev <randomswdev@users.noreply.github.com>
Sat, 27 Oct 2018 13:28:59 +0000 (15:28 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 27 Oct 2018 14:07:24 +0000 (16:07 +0200)
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

index a54fd584fff0a3d2a0c05efef0164802360d46e3..1e555ec19e362e1303c9dbe3fde39679dc2ca779 100644 (file)
 #  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) ||                        \