diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-10-02 21:53:51 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-10-02 21:53:51 -0700 |
commit | fe501957c09a80347b1eb005ba1b1bc0fce14b0d (patch) | |
tree | 6747b0e256b60819125c652dd58577b12c71556e /rdoff | |
parent | 4a8daf06074351df2588a9f5cd2b4a558bde9935 (diff) | |
download | nasm-fe501957c09a80347b1eb005ba1b1bc0fce14b0d.tar.gz nasm-fe501957c09a80347b1eb005ba1b1bc0fce14b0d.tar.bz2 nasm-fe501957c09a80347b1eb005ba1b1bc0fce14b0d.zip |
Portability fixes
Concentrate compiler dependencies to compiler.h; make sure compiler.h
is included first in every .c file (since some prototypes may depend
on the presence of feature request macros.)
Actually use the conditional inclusion of various functions (totally
broken in previous releases.)
Diffstat (limited to 'rdoff')
-rw-r--r-- | rdoff/collectn.c | 3 | ||||
-rw-r--r-- | rdoff/hash.c | 2 | ||||
-rw-r--r-- | rdoff/ldrdf.c | 2 | ||||
-rw-r--r-- | rdoff/rdf2bin.c | 2 | ||||
-rw-r--r-- | rdoff/rdf2ihx.c | 2 | ||||
-rw-r--r-- | rdoff/rdfdump.c | 2 | ||||
-rw-r--r-- | rdoff/rdflib.c | 2 | ||||
-rw-r--r-- | rdoff/rdfload.c | 2 | ||||
-rw-r--r-- | rdoff/rdlar.c | 2 | ||||
-rw-r--r-- | rdoff/rdlib.c | 2 | ||||
-rw-r--r-- | rdoff/rdoff.c | 2 | ||||
-rw-r--r-- | rdoff/rdx.c | 2 | ||||
-rw-r--r-- | rdoff/segtab.c | 2 | ||||
-rw-r--r-- | rdoff/symtab.c | 3 |
14 files changed, 29 insertions, 1 deletions
diff --git a/rdoff/collectn.c b/rdoff/collectn.c index ad43d85..317c528 100644 --- a/rdoff/collectn.c +++ b/rdoff/collectn.c @@ -4,8 +4,9 @@ * This file is public domain. */ -#include "collectn.h" +#include "compiler.h" #include <stdlib.h> +#include "collectn.h" void collection_init(Collection * c) { diff --git a/rdoff/hash.c b/rdoff/hash.c index 34a8edc..8b1d3cf 100644 --- a/rdoff/hash.c +++ b/rdoff/hash.c @@ -8,6 +8,8 @@ * distributed in the NASM archive. */ +#include "compiler.h" + #include "hash.h" const uint32_t consttab[] = { diff --git a/rdoff/ldrdf.c b/rdoff/ldrdf.c index e28f284..cd07fe7 100644 --- a/rdoff/ldrdf.c +++ b/rdoff/ldrdf.c @@ -24,6 +24,8 @@ * under DOS. '#define STINGY_MEMORY' may help a little. */ +#include "compiler.h" + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/rdoff/rdf2bin.c b/rdoff/rdf2bin.c index e556186..0b3f999 100644 --- a/rdoff/rdf2bin.c +++ b/rdoff/rdf2bin.c @@ -2,6 +2,8 @@ * rdf2bin.c - convert an RDOFF object file to flat binary */ +#include "compiler.h" + #include <stdlib.h> #include <stdio.h> #include <string.h> diff --git a/rdoff/rdf2ihx.c b/rdoff/rdf2ihx.c index a0238da..94ba1cb 100644 --- a/rdoff/rdf2ihx.c +++ b/rdoff/rdf2ihx.c @@ -4,6 +4,8 @@ * Note that this program only writes 16-bit HEX. */ +#include "compiler.h" + #include <stdlib.h> #include <stdio.h> #include <string.h> diff --git a/rdoff/rdfdump.c b/rdoff/rdfdump.c index 691241d..8330557 100644 --- a/rdoff/rdfdump.c +++ b/rdoff/rdfdump.c @@ -2,6 +2,8 @@ * rdfdump.c - dump RDOFF file header. */ +#include "compiler.h" + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/rdoff/rdflib.c b/rdoff/rdflib.c index 6abd13c..b4bf6d6 100644 --- a/rdoff/rdflib.c +++ b/rdoff/rdflib.c @@ -23,6 +23,8 @@ * content size, followed by data. */ +#include "compiler.h" + #include <stdio.h> #include <stdlib.h> #include <errno.h> diff --git a/rdoff/rdfload.c b/rdoff/rdfload.c index cd24c2d..063724e 100644 --- a/rdoff/rdfload.c +++ b/rdoff/rdfload.c @@ -17,6 +17,8 @@ * - support for segment relocations (hard to do in ANSI C) */ +#include "compiler.h" + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/rdoff/rdlar.c b/rdoff/rdlar.c index df813d1..1d4cd43 100644 --- a/rdoff/rdlar.c +++ b/rdoff/rdlar.c @@ -3,6 +3,8 @@ * Copyright (c) 2002 RET & COM Research. */ +#include "compiler.h" + #include <stdio.h> #include <stdlib.h> #include <ctype.h> diff --git a/rdoff/rdlib.c b/rdoff/rdlib.c index c094a56..a6ae156 100644 --- a/rdoff/rdlib.c +++ b/rdoff/rdlib.c @@ -2,6 +2,8 @@ * rdlib.c - routines for manipulating RDOFF libraries (.rdl) */ +#include "compiler.h" + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/rdoff/rdoff.c b/rdoff/rdoff.c index ac72279..2539499 100644 --- a/rdoff/rdoff.c +++ b/rdoff/rdoff.c @@ -15,6 +15,8 @@ * make it portable. */ +#include "compiler.h" + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/rdoff/rdx.c b/rdoff/rdx.c index 82210a6..26be0c4 100644 --- a/rdoff/rdx.c +++ b/rdoff/rdx.c @@ -12,6 +12,8 @@ files. You can use these files in your own program to load RDOFF objects and execute the code in them in a similar way to what is shown here. */ +#include "compiler.h" + #include <stdio.h> #include <stdlib.h> diff --git a/rdoff/segtab.c b/rdoff/segtab.c index 8ee1b7b..e1a3ddf 100644 --- a/rdoff/segtab.c +++ b/rdoff/segtab.c @@ -1,3 +1,5 @@ +#include "compiler.h" + #include <stdio.h> #include <stdlib.h> #include "segtab.h" diff --git a/rdoff/symtab.c b/rdoff/symtab.c index 6026ccd..ce54d8e 100644 --- a/rdoff/symtab.c +++ b/rdoff/symtab.c @@ -7,6 +7,9 @@ * redistributable under the licence given in the file "Licence" * distributed in the NASM archive. */ + +#include "compiler.h" + #include <stdio.h> #include <stdlib.h> #include <string.h> |