apply linux notes from martins; simplify build.sh; simplify some linux layer code; fix incorrect linux api usage; get gcc builds up and running

This commit is contained in:
Ryan Fleury
2024-07-23 14:31:10 -07:00
parent e0b67f0ecb
commit 926b5e3546
10 changed files with 132 additions and 133 deletions
+2 -2
View File
@@ -713,7 +713,7 @@ static SINTa rr_lzb_simple_encode_fast_sub(rr_lzb_simple_context * fh,
const U8 * rpEndSafe = rpMatchEnd - LZB_MML;
if ( rpEndSafe <= raw )
if ( rpEndSafe <= (U8 *)raw )
{
// can't compress
return rawLen+1;
@@ -1185,7 +1185,7 @@ static SINTa rr_lzb_simple_encode_veryfast_sub(rr_lzb_simple_context * fh,
const U8 * rpEndSafe = rpMatchEnd - LZB_MML;
if ( rpEndSafe <= raw )
if ( rpEndSafe <= (U8 *)raw )
{
// can't compress
return rawLen+1;
+1 -1
View File
@@ -60,7 +60,7 @@ typedef S32 RAD_S32;
#if defined(_MSC_VER)
# define RADFORCEINLINE __forceinline
#elif defined(__clang__)
#elif defined(__clang__) || defined(__GNUC__)
# define RADFORCEINLINE __attribute__((always_inline))
#else
# error need force inline for this compiler