projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleaned up some more mess. Everything should be the same now as on the 12th
[fw/sdcc]
/
packihx
/
packihx.c
diff --git
a/packihx/packihx.c
b/packihx/packihx.c
index 77a1a0b8dbe891d43e8c068f9c37af3b8efde611..a9cf4e7a48785ed808036485f68faf3dc81f66a2 100644
(file)
--- a/
packihx/packihx.c
+++ b/
packihx/packihx.c
@@
-14,7
+14,15
@@
#include <ctype.h>
#include <assert.h>
#include <ctype.h>
#include <assert.h>
+#if defined(_MSC_VER) || defined(__BORLANDC__)
+
+typedef unsigned char Uint8 ;
+typedef unsigned Uint16 ;
+
+#else
+
#include "config.h"
#include "config.h"
+#endif
/* A cooked line of input. */
typedef struct _Line
/* A cooked line of input. */
typedef struct _Line
@@
-215,7
+223,7
@@
int validateChecksum(Line *line)
if (checksum != line->checksum)
{
fprintf(stderr, "packihx: invalid checksum %X (want %X) @ line %d\n",
if (checksum != line->checksum)
{
fprintf(stderr, "packihx: invalid checksum %X (want %X) @ line %d\n",
- (unsigned)
checksum, (unsigned)(line->checksum),
+ (unsigned)
(line->checksum), (unsigned)checksum,
lineno);
return -1;
}
lineno);
return -1;
}