diff options
author | Paul Smith <psmith@gnu.org> | 1999-07-06 21:09:32 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 1999-07-06 21:09:32 +0000 |
commit | 012254e81e045cc7af01f3ef0d7b63d9d9b9a0d5 (patch) | |
tree | 5d6be3ede34c4a1b49eb042fc1c822eead695566 /arscan.c | |
parent | 2858f7a8f11990a8b9391e70ab4cdaa271522ece (diff) | |
download | gunmake-012254e81e045cc7af01f3ef0d7b63d9d9b9a0d5.tar.gz |
* Various bugfixes/updates. See ChangeLog.
Diffstat (limited to 'arscan.c')
-rw-r--r-- | arscan.c | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -231,7 +231,25 @@ ar_scan (archive, function, arg) # define __AR_BIG__ #endif -#include <ar.h> +#ifndef WINDOWS32 +# include <ar.h> +#else +/* These should allow us to read Windows (VC++) libraries (according to Frank + * Libbrecht <frankl@abzx.belgium.hp.com>) + */ +# include <windows.h> +# include <windef.h> +# include <io.h> +# define ARMAG IMAGE_ARCHIVE_START +# define SARMAG IMAGE_ARCHIVE_START_SIZE +# define ar_hdr _IMAGE_ARCHIVE_MEMBER_HEADER +# define ar_name Name +# define ar_mode Mode +# define ar_size Size +# define ar_date Date +# define ar_uid UserID +# define ar_gid GroupID +#endif /* Cray's <ar.h> apparently defines this. */ #ifndef AR_HDR_SIZE |