Re: Should we define _GNU_SOURCE (was Re: GNOME CVS: gnome-common kmaraas)



Miguel de Icaza <miguel@nuclecu.unam.mx> writes:
> What does _GNU_SOURCE do to our code?

It only makes a difference on GLIBC systems, and enables GNU specific
extensions in the libc.  Essentially, it allows the system headers to
declare more utility functions: `strndup' for example.

It shouldn't affect our code unless there are name clashes with
functions in GLIBC.

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash



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