Fix feature macros for FreeBSD

On FreeBSD, snprintf and vsnprintf are visible only if
_XOPEN_SOURCE >= 600.
master
sghctoma 6 years ago
parent de9e80459a
commit cc16948c85

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

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

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

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

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

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

Loading…
Cancel
Save