This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: __USE_GNU preprocessor macro with gcc 2.96 is not defined
- From: Claudio Bley <bley at cs dot uni-magdeburg dot de>
- To: puneet girdhar <girdhar_puneet at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 15 Oct 2003 18:13:20 +0200
- Subject: Re: __USE_GNU preprocessor macro with gcc 2.96 is not defined
- References: <20031015052332.59346.qmail@web8202.mail.in.yahoo.com>
On Wed, Oct 15, 2003 at 06:23:32AM +0100, puneet girdhar wrote:
> Hi,
> It seems that "__USE_GNU" preprocessor macro is not
> defined with GCC 2.96 whereas it is defined with Gcc
> 3.x .Is it true ? If yes, then how can i make sure
> that "__USE_GNU" preprocessor macro gets defined with
> gcc 2.96 also. One solution can be to define this flag
> in Makefile. Are there some more solutions to define
> "__USE_GNU" with gcc 2.96? Please reply as early as
> possible.
If you want to use some code which is defined in some header file but
only available when __USE_GNU is defined then just define that macro
right before you include the header file:
#ifndef __USE_GNU
#define __USE_GNU
#endif
#include <dlfcn.h>
--
Claudio Bley ASCII ribbon campaign (")
Debian GNU/Linux user - against HTML email X
http://www.cs.uni-magdeburg.de/~bley/ & vCards / \