mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 13:28:40 +00:00
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:
+2
-2
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user