mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-17 17:19:35 +08:00
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:
parent
1a4440ac58
commit
c40f89e1c2
@ -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
4
nasm.h
@ -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
|
||||
|
@ -6,6 +6,7 @@
|
||||
#define RDOFF_RDLAR_H 1
|
||||
|
||||
#include <inttypes.h>
|
||||
#include "config.h"
|
||||
|
||||
/* For non-POSIX operating systems */
|
||||
#ifndef HAVE_GETUID
|
||||
|
Loading…
Reference in New Issue
Block a user