[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GAS/incbin on mingw-host
From: |
Nick Clifton |
Subject: |
Re: GAS/incbin on mingw-host |
Date: |
21 Jan 2003 15:45:37 +0000 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 |
Hi Bastian,
> GAS .incbin does not work correctly with mingw hosts, as it does not use
> "rb" for fopen (as.h includes fopen-same.h instead of fopen-bin.h).
Thanks for pointing this out. Would you mind trying out the attached
patch and letting me know if it solves the problem ?
Cheers
Nick
Index: gas/as.h
===================================================================
RCS file: /cvs/src/src/gas/as.h,v
retrieving revision 1.28
diff -c -3 -p -w -r1.28 as.h
*** gas/as.h 5 Sep 2002 00:01:15 -0000 1.28
--- gas/as.h 21 Jan 2003 15:43:55 -0000
*************** extern char **environ;
*** 188,194 ****
#endif /* __FILE__ */
#ifndef FOPEN_WB
! #ifdef GO32
#include "fopen-bin.h"
#else
#include "fopen-same.h"
--- 188,194 ----
#endif /* __FILE__ */
#ifndef FOPEN_WB
! #if defined GO32 || defined __MINGW32__
#include "fopen-bin.h"
#else
#include "fopen-same.h"