fixed clang compilation
This commit is contained in:
parent
3c5d056fec
commit
c77181e858
2 changed files with 11 additions and 7 deletions
|
|
@ -300,15 +300,24 @@ public:
|
||||||
{
|
{
|
||||||
if (((flags >>= 1) & 256) == 0)
|
if (((flags >>= 1) & 256) == 0)
|
||||||
{
|
{
|
||||||
if ((bit = static_cast <uint8> (fp.GetChar ())) == EOF)
|
int read = fp.GetChar ();
|
||||||
|
|
||||||
|
if (read == EOF)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
bit = static_cast <uint8> (read);
|
||||||
|
|
||||||
flags = bit | 0xff00;
|
flags = bit | 0xff00;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flags & 1)
|
if (flags & 1)
|
||||||
{
|
{
|
||||||
if ((bit = static_cast <uint8> (fp.GetChar ())) == EOF)
|
int read = fp.GetChar ();
|
||||||
|
|
||||||
|
if (read == EOF)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
bit = static_cast <uint8> (read);
|
||||||
buffer[bufferPtr++] = bit;
|
buffer[bufferPtr++] = bit;
|
||||||
|
|
||||||
if (bufferPtr > bufferSize)
|
if (bufferPtr > bufferSize)
|
||||||
|
|
|
||||||
|
|
@ -32,11 +32,6 @@
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
#include "winsock2.h"
|
#include "winsock2.h"
|
||||||
#else // _WIN32
|
#else // _WIN32
|
||||||
#define FALSE 0
|
|
||||||
#define TRUE (!FALSE)
|
|
||||||
typedef unsigned long ULONG;
|
|
||||||
typedef uint8 BYTE;
|
|
||||||
typedef int BOOL;
|
|
||||||
|
|
||||||
#define MAX_PATH PATH_MAX
|
#define MAX_PATH PATH_MAX
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue