Decouple <cstdint>
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
#include "global.h"
|
||||
|
||||
#include <png.h>
|
||||
|
||||
#include "RageSurface_Load_PNG.h"
|
||||
#include "RageUtil.h"
|
||||
#include "RageLog.h"
|
||||
#include "RageFile.h"
|
||||
#include "RageSurface.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include <png.h>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#if defined(_BINARY_PNG)
|
||||
#pragma comment(lib, "libpng.lib")
|
||||
@@ -142,7 +144,7 @@ static RageSurface *RageSurface_Load_PNG( RageFile *f, const char *fn, char erro
|
||||
/* Fake PNG_COLOR_TYPE_GRAY. */
|
||||
for( int i = 0; i < 256; ++i )
|
||||
{
|
||||
colors[i].r = colors[i].g = colors[i].b = (int8_t) i;
|
||||
colors[i].r = colors[i].g = colors[i].b = (std::int8_t) i;
|
||||
colors[i].a = 0xFF;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user