mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 09:25:49 +00:00
Build fixes for NaCl SDK
This commit is contained in:
parent
dfdfe4f0f6
commit
21ec3f0270
@ -129,6 +129,9 @@ OAES_RET oaes_base64_decode(
|
|||||||
if( _out_len_req > *out_len )
|
if( _out_len_req > *out_len )
|
||||||
return OAES_RET_ERROR;
|
return OAES_RET_ERROR;
|
||||||
|
|
||||||
|
// Satisfy overzealous compiler
|
||||||
|
memset(_buf1, 0, sizeof(_buf1));
|
||||||
|
|
||||||
memset(out, 0, *out_len);
|
memset(out, 0, *out_len);
|
||||||
*out_len = 0;
|
*out_len = 0;
|
||||||
while( in_len-- && strchr(_oaes_base64_table, in[_idx++]) )
|
while( in_len-- && strchr(_oaes_base64_table, in[_idx++]) )
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
@ -47,7 +48,9 @@ void LimelogWindows(char* Format, ...);
|
|||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#ifndef LC_DEBUG
|
#ifndef LC_DEBUG
|
||||||
#define NDEBUG
|
#ifndef NDEBUG
|
||||||
|
#define NDEBUG
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#define LC_ASSERT(x) assert(x)
|
#define LC_ASSERT(x) assert(x)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user