Skip to content

Commit

Permalink
fix: add include to manage size_t and number linux in linux
Browse files Browse the repository at this point in the history
  • Loading branch information
alekmaul committed Sep 29, 2023
1 parent faee9f1 commit 48b6352
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/gfx4snes/src/loadbmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@
BMP BI_RLE8 compression support by Andrey Beletsky
***************************************************************************/
#include <stdlib.h>
#include "loadbmp.h"

#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "loadbmp.h"

// This returns the description of a numerical error code in English. This is also
// the documentation of all the error codes.
Expand Down
2 changes: 2 additions & 0 deletions tools/gfx4snes/src/loadbmp.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef _GFX4SNES_LOADBMP_H
#define _GFX4SNES_LOADBMP_H

#include <string.h> /*for size_t*/

#pragma pack(push)
#pragma pack(1) // for bmp header to avoid data alignment

Expand Down

0 comments on commit 48b6352

Please sign in to comment.