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 <assert.h>
#include <cairo/cairo.h> #include <cairo/cairo.h>
#include <fcntl.h> #include <fcntl.h>

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

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

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

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

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

Loading…
Cancel
Save