AIf we have config.h, we should actually include it!!

Apparently configure was generating config.h, and nothing ever actually
included it.  Include it in nasm.h as well as compiler.h, and in
rdoff/rdlar.h which uses these macros.

There appears to be no use of HAVE_* macros in any file that doesn't
have nasm.h included; in fact, so far the only use has been in
rdoff/rdlar.h.
This commit is contained in:
H. Peter Anvin 2007-04-13 20:06:41 +00:00
parent 1a4440ac58
commit c40f89e1c2
3 changed files with 11 additions and 2 deletions

View File

@ -16,7 +16,11 @@
*/
#ifndef COMPILER_H
#define COMPILER_H
#define COMPILER_H 1
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#ifdef __GNUC__
# if __GNUC__ >= 4
@ -33,4 +37,4 @@
# define _unused
#endif
#endif
#endif /* COMPILER_H */

4
nasm.h
View File

@ -15,6 +15,10 @@
#include <inttypes.h>
#include "version.h" /* generated NASM version macros */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifndef NULL
#define NULL 0
#endif

View File

@ -6,6 +6,7 @@
#define RDOFF_RDLAR_H 1
#include <inttypes.h>
#include "config.h"
/* For non-POSIX operating systems */
#ifndef HAVE_GETUID