This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: __USE_GNU preprocessor macro with gcc 2.96 is not defined


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 / \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]