summaryrefslogtreecommitdiff
path: root/arscan.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-07-06 21:09:32 +0000
committerPaul Smith <psmith@gnu.org>1999-07-06 21:09:32 +0000
commit012254e81e045cc7af01f3ef0d7b63d9d9b9a0d5 (patch)
tree5d6be3ede34c4a1b49eb042fc1c822eead695566 /arscan.c
parent2858f7a8f11990a8b9391e70ab4cdaa271522ece (diff)
downloadgunmake-012254e81e045cc7af01f3ef0d7b63d9d9b9a0d5.tar.gz
* Various bugfixes/updates. See ChangeLog.
Diffstat (limited to 'arscan.c')
-rw-r--r--arscan.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/arscan.c b/arscan.c
index 5c4a48f..19aa8ad 100644
--- a/arscan.c
+++ b/arscan.c
@@ -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