Hi,
when compiling on linux I got tons of errors because of size_t not being declared in picopng library.
Including cstddef in picopng.h will fix this:
#pragma once
#include <vector>
#include <cstddef>
namespace PicoPNG
{
int decodePNG(std::vector<unsigned char>& out_image, unsigned long& image_width, unsigned long& image_height, const unsigned char* in_png, size_t in_size, bool convert_to_rgba32);
}