Make RPNG compilable outside RetroArch without source hacking.

This commit is contained in:
Themaister 2014-01-11 12:21:43 +01:00
parent bfd69d1baa
commit f3eb9dfafe
2 changed files with 12 additions and 1 deletions

View File

@ -20,7 +20,15 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef RARCH_INTERNAL
#include "../../hash.h"
#else
static inline uint32_t crc32_calculate(const uint8_t *data, size_t length)
{
return crc32(0, data, length);
}
#endif
// Decodes a subset of PNG standard.
// Does not handle much outside 24/32-bit RGB(A) images.

View File

@ -17,7 +17,10 @@
#define RPNG_H__
#include <stdint.h>
#include "../../boolean.h"
#ifndef __cplusplus
#include <stdbool.h>
#endif
#ifdef HAVE_CONFIG_H
#include "../../config.h"