jpg.h: add include for sys/types.h and define _GNU_SOURCE.

this allows us to use uint on musl libc systems like Void Linux and
Alpine.
This commit is contained in:
maxice8 2018-06-27 21:55:47 -03:00
parent d0a6cfda92
commit c265fea703
1 changed files with 3 additions and 0 deletions

3
jpg.h
View File

@ -1,6 +1,9 @@
#ifndef _JPG_H
#define _JPG_H
#include <sys/types.h>
#define _GNU_SOURCE 1
typedef struct {
uint height;
uint width;