0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-09-22 10:43:39 -04:00
Files
nasm/rdoff/rdlar.h
H. Peter Anvin c40f89e1c2 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.
2007-04-13 20:06:41 +00:00

36 lines
876 B
C

/*
* rdlar.h - definitions of new RDOFF library/archive format.
*/
#ifndef RDOFF_RDLAR_H
#define RDOFF_RDLAR_H 1
#include <inttypes.h>
#include "config.h"
/* For non-POSIX operating systems */
#ifndef HAVE_GETUID
# define getuid() 0
#endif
#ifndef HAVE_GETGID
# define getgid() 0
#endif
#define RDLAMAG 0x414C4452 /* Archive magic */
#define RDLMMAG 0x4D4C4452 /* Member magic */
#define MAXMODNAMELEN 256 /* Maximum length of module name */
struct rdlm_hdr {
uint32_t magic; /* Must be RDLAMAG */
uint32_t hdrsize; /* Header size + sizeof(module_name) */
uint32_t date; /* Creation date */
uint32_t owner; /* UID */
uint32_t group; /* GID */
uint32_t mode; /* File mode */
uint32_t size; /* File size */
/* NULL-terminated module name immediately follows */
};
#endif