Message-ID: <39229864.55ABC60E@softhome.net> Date: Wed, 17 May 2000 16:02:29 +0300 From: Laurynas Biveinis X-Mailer: Mozilla 4.72 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: GCC Patches CC: DJGPP Workers Subject: Minor system.h patch Content-Type: text/plain; charset=iso-8859-4 Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com This kills warnings under DJGPP about 'offsetof' redefinition. Current system.h defines its own offsetof macro only if it hasn't been defined previously. But before that, it #includes just , and according to ANSI, offsetof lives in . This patch includes (if configure script has found it) before offsetof and NULL fallback definitions. 2000-05-17 Laurynas Biveinis * system.h: #include if HAVE_STDDEF_H defined. --- cvs/gcc/gcc/system.h Fri May 12 20:11:48 2000 +++ gcc/gcc/system.h Wed May 17 15:48:00 2000 @@ -45,6 +45,10 @@ Boston, MA 02111-1307, USA. */ #include +#ifdef HAVE_STDDEF_H +#include +#endif + /* Define a generic NULL if one hasn't already been defined. */ #ifndef NULL #define NULL 0