Fix feature macros for FreeBSD

On FreeBSD, snprintf and vsnprintf are visible only if
_XOPEN_SOURCE >= 600.
This commit is contained in:
sghctoma 2018-08-30 09:29:05 +02:00
parent de9e80459a
commit cc16948c85
6 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 600
#include <assert.h>
#include <cairo/cairo.h>
#include <fcntl.h>

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 600
#include <ctype.h>
#include <stdarg.h>
#include <stdlib.h>

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 600
#include <string.h>
#include <strings.h>
#include <wlr/util/log.h>

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 600
#include <libgen.h>
#include <strings.h>
#include <unistd.h>

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 600
#include <ctype.h>
#include <limits.h>
#include <stdbool.h>

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 600
#include <limits.h>
#include <string.h>
#include <strings.h>