Loader includes tweaks

This commit is contained in:
Kim Woelders 2022-03-03 12:00:10 +01:00
parent 9d5e8dffe1
commit 3459740001
16 changed files with 6 additions and 21 deletions

View File

@ -1,7 +1,5 @@
#include "loader_common.h"
#include <sys/mman.h>
int
decompress_load(ImlibImage * im, int load_data, const char *const *pext,
int next, imlib_decompress_load_f * fdec)

View File

@ -1,7 +1,5 @@
#include "loader_common.h"
#include <sys/mman.h>
static struct {
const unsigned char *data, *dptr;
unsigned int size;

View File

@ -9,8 +9,6 @@
*/
#include "loader_common.h"
#include <sys/mman.h>
#define DBG_PFX "LDR-bmp"
#define Dx(fmt...)

View File

@ -2,6 +2,12 @@
#define __LOADER_COMMON_H 1
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/mman.h>
#include "common.h"
#include "debug.h"
#include "image.h"

View File

@ -3,7 +3,6 @@
#include <stdint.h>
#include <arpa/inet.h>
#include <sys/mman.h>
#define mm_check(p) ((const char *)(p) <= (const char *)fdata + im->fsize)

View File

@ -7,7 +7,6 @@
#include "loader_common.h"
#include <libheif/heif.h>
#include <sys/mman.h>
#define HEIF_BYTES_TO_CHECK 12L
#define HEIF_8BIT_TO_PIXEL_ARGB(plane, has_alpha) \

View File

@ -8,7 +8,6 @@
#include "loader_common.h"
#include <limits.h>
#include <sys/mman.h>
#define DBG_PFX "LDR-ico"

View File

@ -13,8 +13,6 @@
#include "loader_common.h"
#include <sys/mman.h>
#define DBG_PFX "LDR-lbm"
#define L2RLONG(a) ((((int)((a)[0]) & 0xff) << 24) + (((int)((a)[1]) & 0xff) << 16) + (((int)((a)[2]) & 0xff) << 8) + ((int)((a)[3]) & 0xff))

View File

@ -2,7 +2,6 @@
#include <png.h>
#include <stdint.h>
#include <sys/mman.h>
#include <arpa/inet.h>
#define DBG_PFX "LDR-png"

View File

@ -2,7 +2,6 @@
#include <ctype.h>
#include <stdbool.h>
#include <sys/mman.h>
#define DBG_PFX "LDR-pnm"

View File

@ -1,7 +1,6 @@
#include "loader_common.h"
#include <math.h>
#include <sys/mman.h>
#include <librsvg/rsvg.h>
#define DBG_PFX "LDR-svg"

View File

@ -12,7 +12,6 @@
#include "loader_common.h"
#include <stdint.h>
#include <sys/mman.h>
#define DBG_PFX "LDR-tga"

View File

@ -6,7 +6,6 @@
#include <setjmp.h>
#include <stdint.h>
#include <tiffio.h>
#include <sys/mman.h>
/* This is a wrapper data structure for TIFFRGBAImage, so that data can be */
/* passed into the callbacks. More elegent, I think, than a bunch of globals */

View File

@ -1,6 +1,5 @@
#include "loader_common.h"
#include <sys/mman.h>
#include <webp/decode.h>
#include <webp/demux.h>
#include <webp/encode.h>

View File

@ -4,8 +4,6 @@
#define _GNU_SOURCE /* memmem() */
#include "loader_common.h"
#include <sys/mman.h>
#define DBG_PFX "LDR-xbm"
static struct {

View File

@ -1,8 +1,6 @@
#define _GNU_SOURCE /* memmem() */
#include "loader_common.h"
#include <sys/mman.h>
static struct {
const char *data, *dptr;
unsigned int size;