Skip to content

Commit 60fa652

Browse files
authored
Merge pull request #782 from 7dog123/master
romimg: Use uintptr_t
2 parents f010105 + 7baece6 commit 60fa652

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tools/romimg/src/romimg.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@
2121
#define __ROMING_H__
2222

2323
#include "dprintf.h"
24-
#if defined(_WIN32) || defined(WIN32)
25-
#define RMIMG_PTRCAST unsigned int
26-
#else
27-
#define RMIMG_PTRCAST unsigned char *
28-
#endif
24+
#include <stdint.h> // for uintptr_t
25+
26+
#define RMIMG_PTRCAST uintptr_t
27+
2928
struct RomDirEntry
3029
{
3130
char name[10];

0 commit comments

Comments
 (0)