Mail Archives: djgpp-workers/1999/03/09/14:31:31
--Message-Boundary-31230
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
On 7 Mar 99, at 11:44, Peter Gerwinski wrote:
> Hello,
>
> while cross-building the DJGPP GNU compiler from Linux, we
> encountered some warnings. The following patch makes them
> disappear.
>
> Since the problems are connected with "fixed included", this
> should not affect the normal (native) DJGPP compiler.
>
This fixes a part of problems when building egcs with DJGPP, but for more
complete removal of warnings we should do the same for wchar_t (that was
not present in DJGPP-201, but is in 2.02). This problem also appears when building
native compiler with DJGPP (not only for cross-compiler)
Below is full patch against include/sys/djtypes.h from djdev202.zip
Andris
--Message-Boundary-31230
Content-type: text/plain; charset=US-ASCII
Content-disposition: inline
Content-description: Attachment information.
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.
---- File information -----------
File: djtypes.h.diff
Date: 9 Mar 1999, 21:25
Size: 1134 bytes.
Type: Text
--Message-Boundary-31230
Content-type: Application/Octet-stream; name="djtypes.h.diff"; type=Text
Content-disposition: attachment; filename="djtypes.h.diff"
*** include/sys/djtypes.h.orig Wed Sep 9 16:56:26 1998
--- include/sys/djtypes.h Tue Mar 9 21:22:50 1999
***************
*** 7,24 ****
--- 7,39 ----
#define __DJ_gid_t typedef int gid_t;
#define __DJ_off_t typedef int off_t;
#define __DJ_pid_t typedef int pid_t;
+ #ifndef _SIZE_T_DEFINED_
+ #define _SIZE_T_DEFINED_
#define __DJ_size_t typedef long unsigned int size_t;
+ #else
+ #define __DJ_size_t
+ #endif
#define __DJ_ssize_t typedef int ssize_t;
#define __DJ_time_t typedef unsigned int time_t;
#define __DJ_uid_t typedef int uid_t;
+ #ifndef _VA_LIST_DEFINED
+ #define _VA_LIST_DEFINED
#define __DJ_va_list typedef void *va_list;
+ #else
+ #define __DJ_va_list
+ #endif
#if defined(__cplusplus) && ( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
/* wchar_t is now a keyword in C++ */
#define __DJ_wchar_t
#else
/* but remains a typedef in C */
+ #ifndef _WCHAR_T_DEFINED_
+ #define _WCHAR_T_DEFINED_
#define __DJ_wchar_t typedef int wchar_t;
+ #else
+ #define __DJ_wchar_t
+ #endif
#endif
#define __DJ_wint_t typedef int wint_t;
--Message-Boundary-31230--
- Raw text -