Re: [PATCH] compat-util: add _DEFAULT_SOURCE define

2014-09-16 Thread Sergey Senozhatsky
Hello, On (09/15/14 12:02), Junio C Hamano wrote: > Date: Mon, 15 Sep 2014 12:02:33 -0700 > From: Junio C Hamano > To: Sergey Senozhatsky > Cc: git@vger.kernel.org > Subject: Re: [PATCH] compat-util: add _DEFAULT_SOURCE define > User-Agent: Gnus/5.13 (Gnus v5.13) Ema

Re: [PATCH] compat-util: add _DEFAULT_SOURCE define

2014-09-15 Thread Junio C Hamano
Sergey Senozhatsky writes: > glibc has deprecated the use of _BSD_SOURCE define > > warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" > > To make it easier to maintain a cross platform source code, that > warning can be suppressed by _DEFAULT_SOURCE. > > Define both _BS

[PATCH] compat-util: add _DEFAULT_SOURCE define

2014-09-13 Thread Sergey Senozhatsky
glibc has deprecated the use of _BSD_SOURCE define warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" To make it easier to maintain a cross platform source code, that warning can be suppressed by _DEFAULT_SOURCE. Define both _BSD_SOURCE, _DEFAULT_SOURCE and cleanup the