aboutsummaryrefslogtreecommitdiffstats
path: root/rdoff
diff options
context:
space:
mode:
authorKeith Kanios <spook@dynatos.net>2007-04-12 16:23:11 +0000
committerKeith Kanios <spook@dynatos.net>2007-04-12 16:23:11 +0000
commit82e15cd5b3034f8bb743538d366341da35f66f6d (patch)
tree18d4f3eca5b4908954287e3588e6fdd443088b60 /rdoff
parent58421f96972a647a3dc7efb6927a9171d75ac238 (diff)
downloadnasm-82e15cd5b3034f8bb743538d366341da35f66f6d.tar.gz
nasm-82e15cd5b3034f8bb743538d366341da35f66f6d.tar.xz
nasm-82e15cd5b3034f8bb743538d366341da35f66f6d.zip
Fixed c99 support for RDOFF Tools
Diffstat (limited to 'rdoff')
-rw-r--r--rdoff/hash.c2
-rw-r--r--rdoff/rdf2bin.c2
-rw-r--r--rdoff/rdflib.c5
-rw-r--r--rdoff/rdoff.c1
-rw-r--r--rdoff/rdoff.h2
5 files changed, 8 insertions, 4 deletions
diff --git a/rdoff/hash.c b/rdoff/hash.c
index 9f800026..75213599 100644
--- a/rdoff/hash.c
+++ b/rdoff/hash.c
@@ -8,6 +8,8 @@
* distributed in the NASM archive.
*/
+#include <inttypes.h>
+
#include "hash.h"
typedef unsigned int crc32;
diff --git a/rdoff/rdf2bin.c b/rdoff/rdf2bin.c
index 2858cd54..798b213d 100644
--- a/rdoff/rdf2bin.c
+++ b/rdoff/rdf2bin.c
@@ -7,7 +7,7 @@
#include <string.h>
#include "rdfload.h"
-#include "nasmlib.h"
+#include "../nasmlib.h"
int32_t origin = 0;
int align = 16;
diff --git a/rdoff/rdflib.c b/rdoff/rdflib.c
index aa6e6f61..588fc1b7 100644
--- a/rdoff/rdflib.c
+++ b/rdoff/rdflib.c
@@ -29,6 +29,7 @@
#include <errno.h>
#include <string.h>
#include <time.h>
+#include <inttypes.h>
/* functions supported:
* create a library (no extra operands required)
@@ -52,7 +53,7 @@ const int8_t *usage =
/* Library signature */
const int8_t *rdl_signature = "RDLIB2", *sig_modname = ".sig";
-int8_t **_argv;
+char **_argv;
#define _ENDIANNESS 0 /* 0 for little, 1 for big */
@@ -115,7 +116,7 @@ int32_t copyint32_t(FILE * fp, FILE * fp2)
return l;
}
-int main(int argc, int8_t **argv)
+int main(int argc, char **argv)
{
FILE *fp, *fp2 = NULL, *fptmp;
int8_t *p, buf[256], c;
diff --git a/rdoff/rdoff.c b/rdoff/rdoff.c
index 9c48278f..fdafc92a 100644
--- a/rdoff/rdoff.c
+++ b/rdoff/rdoff.c
@@ -19,6 +19,7 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
+#include <inttypes.h>
#define RDOFF_UTILS
diff --git a/rdoff/rdoff.h b/rdoff/rdoff.h
index 248c6142..8285fce5 100644
--- a/rdoff/rdoff.h
+++ b/rdoff/rdoff.h
@@ -154,7 +154,7 @@ struct CommonRec {
/* Some systems don't define this automatically */
#if !defined(strdup)
-extern int8_t *strdup(const int8_t *);
+extern char *strdup(const char *);
#endif
typedef union RDFHeaderRec {