mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Define _GNU_SOURCE only if not defined.
This commit is contained in:
parent
bac6f7d7b6
commit
914f0e5628
3 changed files with 10 additions and 2 deletions
|
@ -20,7 +20,9 @@
|
|||
* vim: ts=2 sw=2 et cindent
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE /* asprintf */
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <fnmatch.h>
|
||||
|
|
|
@ -20,7 +20,10 @@
|
|||
* vim: ts=2 sw=2 et cindent
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE /* asprintf */
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include <sqlite3.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -20,7 +20,10 @@
|
|||
* vim: ts=2 sw=2 et cindent
|
||||
*/
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue