Increase _XOPEN_SOURCE to 600.

The snprintf() function conforms to C99.  On FreeBSD, sys/cdefs.h instruct us that _XOPEN_SOURCE == 500 defines _POSIX_C_SOURCE as 199506 which in turn defines __ISO_C_VISIBLE as 1990.  600 is the minimal _XOPEN_SOURCE value we can use to allow us using C99 functions.

Reported by:	tinderbox
This commit is contained in:
Romain Tartiere 2009-12-23 12:01:40 +00:00
parent e0fab1c9a7
commit 73448612af

View file

@ -20,7 +20,7 @@
* @file pn532_uart.c * @file pn532_uart.c
* @brief * @brief
*/ */
#define _XOPEN_SOURCE 500 #define _XOPEN_SOURCE 600
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>