Mail Archives: djgpp-workers/2002/02/28/00:05:23
Just to confirm the v2.03 refresh++ plans:
1) CVS head of djgpp.env
2) CVS head of readme.1st + want to add some to it for new platforms.
Changes to 2 headers for GCC 3 pain killers (I think we've agreed to
these, but I need to commit them to the v2_03_1 branch):
*** string.h_old Sun Jun 28 19:02:34 1998
--- string.h Wed Feb 27 22:41:40 2002
*************** size_t strxfrm(char *_s1, const char *_s
*** 51,55 ****
--- 51,59 ----
int bcmp(const void *_ptr1, const void *_ptr2, int _length);
void * bcopy(const void *_a, void *_b, size_t _len);
+ #if __GNUC__ >= 3
+ #define bzero(s, n) __builtin_bzero(s, n)
+ #else
void * bzero(void *ptr, size_t _len);
+ #endif
int ffs(int _mask);
char * index(const char *_string, int _c);
*** djtypes.h_old Tue Dec 14 05:57:46 1999
--- djtypes.h Wed Feb 27 22:53:52 2002
***************
*** 13,17 ****
--- 13,25 ----
#define __DJ_time_t typedef unsigned int time_t;
#define __DJ_uid_t typedef int uid_t;
+
+ /* For GCC 3.00 or later we use its builtin va_list. */
+ /* In most cases these definitions won't be used, because headers provided */
+ /* by GCC hide them. But we can DTRT if GCC headers are missing. */
+ #if __GNUC__ >= 3
+ #define __DJ_va_list typedef __builtin_va_list va_list;
+ #else
#define __DJ_va_list typedef void *va_list;
+ #endif
#if defined(__cplusplus) && ( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
- Raw text -