mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Cleanup.
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user