mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- Use host/typedefs.h for rsym instead of reinventing the wheel for host types
- Get rsym to compile warning-free under any host svn path=/trunk/; revision=32105
This commit is contained in:
parent
bec6c89c6d
commit
77a3a581b7
3 changed files with 5 additions and 26 deletions
|
@ -490,7 +490,7 @@ ProcessRelocations(ULONG *ProcessedRelocsLength, void **ProcessedRelocs,
|
|||
*ProcessedRelocs = malloc(RelocSectionHeader->SizeOfRawData);
|
||||
if (NULL == *ProcessedRelocs)
|
||||
{
|
||||
fprintf(stderr, "Failed to allocate %lu bytes for relocations\n", RelocSectionHeader->SizeOfRawData);
|
||||
fprintf(stderr, "Failed to allocate %u bytes for relocations\n", (UINT)RelocSectionHeader->SizeOfRawData);
|
||||
return 1;
|
||||
}
|
||||
*ProcessedRelocsLength = 0;
|
||||
|
@ -566,7 +566,7 @@ CreateOutputFile(FILE *OutFile, void *InData,
|
|||
OutHeader = malloc(StartOfRawData);
|
||||
if (NULL == OutHeader)
|
||||
{
|
||||
fprintf(stderr, "Failed to allocate %lu bytes for output file header\n", StartOfRawData);
|
||||
fprintf(stderr, "Failed to allocate %u bytes for output file header\n", (UINT)StartOfRawData);
|
||||
return 1;
|
||||
}
|
||||
memset(OutHeader, '\0', StartOfRawData);
|
||||
|
@ -679,7 +679,7 @@ CreateOutputFile(FILE *OutFile, void *InData,
|
|||
PaddedRosSym = malloc(RosSymFileLength);
|
||||
if (NULL == PaddedRosSym)
|
||||
{
|
||||
fprintf(stderr, "Failed to allocate %lu bytes for padded .rossym\n", RosSymFileLength);
|
||||
fprintf(stderr, "Failed to allocate %u bytes for padded .rossym\n", (UINT)RosSymFileLength);
|
||||
return 1;
|
||||
}
|
||||
memcpy(PaddedRosSym, RosSymSection, RosSymLength);
|
||||
|
|
|
@ -10,28 +10,7 @@
|
|||
|
||||
#define IMAGE_NUMBEROF_DIRECTORY_ENTRIES 16
|
||||
|
||||
typedef unsigned char BYTE;
|
||||
typedef unsigned char UCHAR;
|
||||
typedef unsigned short WORD;
|
||||
typedef unsigned short USHORT;
|
||||
#if defined(__x86_64__) && defined(unix)
|
||||
typedef signed int LONG;
|
||||
typedef unsigned int ULONG;
|
||||
typedef unsigned int DWORD;
|
||||
#else
|
||||
typedef signed long LONG;
|
||||
typedef unsigned long ULONG;
|
||||
typedef unsigned long DWORD;
|
||||
#endif
|
||||
#if defined(_WIN64)
|
||||
typedef unsigned __int64 ULONG_PTR;
|
||||
#else
|
||||
#if defined(__x86_64__) && defined(unix)
|
||||
typedef unsigned int ULONG_PTR;
|
||||
#else
|
||||
typedef unsigned long ULONG_PTR;
|
||||
#endif
|
||||
#endif
|
||||
#include <host/typedefs.h>
|
||||
|
||||
#pragma pack(2)
|
||||
typedef struct _IMAGE_DOS_HEADER {
|
||||
|
|
|
@ -16,7 +16,7 @@ RSYM_SOURCES = \
|
|||
RSYM_OBJECTS = \
|
||||
$(addprefix $(INTERMEDIATE_), $(RSYM_SOURCES:.c=.o))
|
||||
|
||||
RSYM_HOST_CFLAGS = $(TOOLS_CFLAGS)
|
||||
RSYM_HOST_CFLAGS = $(TOOLS_CFLAGS) -Iinclude
|
||||
|
||||
RSYM_HOST_LFLAGS = $(TOOLS_LFLAGS)
|
||||
|
||||
|
|
Loading…
Reference in a new issue