This commit is contained in:
Branimir Karadžić
2017-02-21 15:02:10 -08:00
parent d8cd914433
commit 65f728c0ce
3 changed files with 5 additions and 3 deletions

View File

@@ -11,7 +11,8 @@
|| BX_PLATFORM_LINUX \
|| BX_PLATFORM_NACL \
|| BX_PLATFORM_IOS \
|| BX_PLATFORM_OSX
|| BX_PLATFORM_OSX \
|| BX_PLATFORM_PS4
# include <pthread.h>
#elif BX_PLATFORM_WINDOWS \
|| BX_PLATFORM_WINRT \

View File

@@ -143,7 +143,7 @@ namespace bx
const char* ptr = _str;
for (; 0 < _max && *ptr != '\0'; ++ptr, --_max) {};
return ptr - _str;
return int32_t(ptr - _str);
}
int32_t strlncpy(char* _dst, int32_t _dstSize, const char* _src, int32_t _num)

View File

@@ -9,7 +9,8 @@
|| BX_PLATFORM_LINUX \
|| BX_PLATFORM_NACL \
|| BX_PLATFORM_IOS \
|| BX_PLATFORM_OSX
|| BX_PLATFORM_OSX \
|| BX_PLATFORM_PS4
# include <pthread.h>
# if defined(__FreeBSD__)
# include <pthread_np.h>