Changeset 68578 in vbox
- Timestamp:
- Aug 31, 2017 12:11:03 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 117795
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/utf8-posix.cpp
r62946 r68578 74 74 # include "internal/thread.h" 75 75 AssertCompile(sizeof(iconv_t) <= sizeof(void *)); 76 #endif 77 78 79 /* There are different opinions about the constness of the input buffer. */ 80 #if defined(RT_OS_LINUX) || defined(RT_OS_HAIKU) || defined(RT_OS_SOLARIS) \ 81 || (defined(RT_OS_DARWIN) && defined(_DARWIN_FEATURE_UNIX_CONFORMANCE)) 82 # define NON_CONST_ICONV_INPUT 83 #endif 84 #ifdef RT_OS_FREEBSD 85 # include <sys/param.h> 86 # if __FreeBSD_version >= 1002000 /* Changed around 10.2.2 (https://svnweb.freebsd.org/base?view=revision&revision=281550) */ 87 # define NON_CONST_ICONV_INPUT 88 # else 89 # error __FreeBSD_version__ 90 # endif 76 91 #endif 77 92 … … 195 210 void *pvOutputLeft = pvOutput; 196 211 size_t cchNonRev; 197 #if defined(RT_OS_LINUX) || defined(RT_OS_HAIKU) || defined(RT_OS_SOLARIS) || (defined(RT_OS_DARWIN) && defined(_DARWIN_FEATURE_UNIX_CONFORMANCE)) /* there are different opinions about the constness of the input buffer. */212 #ifdef NON_CONST_ICONV_INPUT 198 213 cchNonRev = iconv(hIconv, (char **)&pvInputLeft, &cbInLeft, (char **)&pvOutputLeft, &cbOutLeft); 199 214 #else … … 325 340 void *pvOutputLeft = pvOutput; 326 341 size_t cchNonRev; 327 #if defined(RT_OS_LINUX) || defined(RT_OS_HAIKU) || defined(RT_OS_SOLARIS) || (defined(RT_OS_DARWIN) && defined(_DARWIN_FEATURE_UNIX_CONFORMANCE)) /* there are different opinions about the constness of the input buffer. */342 #ifdef NON_CONST_ICONV_INPUT 328 343 cchNonRev = iconv(icHandle, (char **)&pvInputLeft, &cbInLeft, (char **)&pvOutputLeft, &cbOutLeft); 329 344 #else
Note:
See TracChangeset
for help on using the changeset viewer.