Skip to content

size_t definition missing in picopng library header #134

@jansalleine

Description

@jansalleine

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);
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions