_XOPEN_SOURCE should be defined on CFLAGS if needed

This commit is contained in:
Thomas Bernard 2018-12-17 10:35:30 +01:00
parent 8e6ddb4066
commit 595348e7ed
4 changed files with 0 additions and 17 deletions

View File

@ -28,12 +28,6 @@
#include <windows.h> #include <windows.h>
#endif #endif
// On Debian, this is already implied in dirent.h
// I don't know which targets need it and what it does. - yr
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 500
#endif
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -47,9 +47,6 @@
#define MOUNTED_GETMNTENT1 #define MOUNTED_GETMNTENT1
#endif #endif
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 500
#endif
// --- END GRAFX2 CUSTOM CONFIG --- // --- END GRAFX2 CUSTOM CONFIG ---
#include "mountlist.h" #include "mountlist.h"

View File

@ -21,10 +21,6 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with Grafx2; if not, see <http://www.gnu.org/licenses/> along with Grafx2; if not, see <http://www.gnu.org/licenses/>
*/ */
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 500
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,9 +1,5 @@
/* vim:expandtab:ts=2 sw=2: /* vim:expandtab:ts=2 sw=2:
*/ */
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 500
#endif
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>