yes
[fw/sdcc] / packihx / packihx.c
index ad11efd7050f2685fc87b45ac87e1ded67cef884..a9cf4e7a48785ed808036485f68faf3dc81f66a2 100644 (file)
@@ -1,7 +1,7 @@
 /*-----------------------------------------------------------------------
  * packihx.c:
  *
- * utility to pack an Inter HEX format file by removing redundant 
+ * utility to pack an Intel HEX format file by removing redundant 
  * extended offset records and accumulating data records up to
  * OUTPUT_CHUNK (currently 16) bytes.
  *
 #include <ctype.h>
 #include <assert.h>
 
+#if defined(_MSC_VER) || defined(__BORLANDC__)
+
+typedef unsigned char Uint8 ;
+typedef unsigned Uint16 ;
+
+#else
+
 #include "config.h"
+#endif
 
 /* 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", 
-               (unsigned)checksum, (unsigned)(line->checksum),
+               (unsigned)(line->checksum), (unsigned)checksum, 
                lineno);
         return -1;     
     }