Re: __USE_GNU preprocessor macro with gcc 2.96 is not defined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux