mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 03:10:14 +00:00
Make RPNG compilable outside RetroArch without source hacking.
This commit is contained in:
parent
bfd69d1baa
commit
f3eb9dfafe
@ -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.
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user