diff options
author | Frederik Carlier <frederik.carlier@quamotion.mobi> | 2017-01-26 23:35:37 +0100 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2017-01-26 23:35:37 +0100 |
commit | 69b5d5c46e007cbb580c411b60dc501362af0486 (patch) | |
tree | 8a8c9052eab15f23c962c9451cfd1df4611ad79b /src/pal/inc | |
parent | 10b85acbf6f635b9b2094b28758e60e86ab9e5d1 (diff) | |
download | coreclr-69b5d5c46e007cbb580c411b60dc501362af0486.tar.gz coreclr-69b5d5c46e007cbb580c411b60dc501362af0486.tar.bz2 coreclr-69b5d5c46e007cbb580c411b60dc501362af0486.zip |
Clean up PAL functions (#9149)
Clean up PAL functions to enable cross-compiling for Android
* Rename wcsnlen to PAL_wcsnlen, avoids a name collision on Android
* Remove unuwed _getw and _putw functions
Diffstat (limited to 'src/pal/inc')
-rw-r--r-- | src/pal/inc/mbusafecrt.h | 2 | ||||
-rw-r--r-- | src/pal/inc/pal.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/pal/inc/mbusafecrt.h b/src/pal/inc/mbusafecrt.h index 8cf050f419..f030b7ded2 100644 --- a/src/pal/inc/mbusafecrt.h +++ b/src/pal/inc/mbusafecrt.h @@ -56,7 +56,7 @@ extern WCHAR* wcstok_s( WCHAR* inString, const WCHAR* inControl, WCHAR** ioConte // strnlen is not required unless the source string is completely untrusted (e.g. anonymous input on a website) #ifndef SUPPRESS_STRNLEN extern size_t PAL_strnlen( const char* inString, size_t inMaxSize ); - extern size_t wcsnlen( const WCHAR* inString, size_t inMaxSize ); + extern size_t PAL_wcsnlen( const WCHAR* inString, size_t inMaxSize ); #endif extern errno_t _itoa_s( int inValue, char* outBuffer, size_t inDestBufferSize, int inRadix ); diff --git a/src/pal/inc/pal.h b/src/pal/inc/pal.h index fdcec58c24..46f4688cb5 100644 --- a/src/pal/inc/pal.h +++ b/src/pal/inc/pal.h @@ -4954,6 +4954,7 @@ CoCreateGuid(OUT GUID * pguid); #define _wcstoui64 PAL__wcstoui64 #define _flushall PAL__flushall #define strnlen PAL_strnlen +#define wcsnlen PAL_wcsnlen #ifdef _AMD64_ #define _mm_getcsr PAL__mm_getcsr |