Use _DEFAULT_SOURCE instead of _BSD_SOURCE, since _BSD_SOURCE is deprecated.

This commit is contained in:
Aaron Hamilton
2015-01-21 23:43:45 +00:00
parent 8773541f35
commit cf22aa9ff5
9 changed files with 9 additions and 9 deletions

View File

@@ -18,7 +18,7 @@
*/
#define _POSIX_C_SOURCE 200809L // for strdup
#define _BSD_SOURCE // for strdup on old systems
#define _DEFAULT_SOURCE // for strdup on old systems
#include <jansson.h>
#include <stdlib.h>

View File

@@ -18,7 +18,7 @@
*/
#define _POSIX_C_SOURCE 200809L // for strdup
#define _BSD_SOURCE // for strdup on old systems
#define _DEFAULT_SOURCE // for strdup on old systems
#include <jansson.h>
#include <stdlib.h>

View File

@@ -18,7 +18,7 @@
*/
#define _POSIX_C_SOURCE 200809L // for strdup
#define _BSD_SOURCE // for strdup on old systems
#define _DEFAULT_SOURCE // for strdup on old systems
#include <jansson.h>
#include <stdint.h>

View File

@@ -18,7 +18,7 @@
*/
#define _POSIX_C_SOURCE 200809L // for strdup
#define _BSD_SOURCE // for strdup on old systems
#define _DEFAULT_SOURCE // for strdup on old systems
#include <stdint.h>
#include <stdio.h>

View File

@@ -18,7 +18,7 @@
*/
#define _POSIX_C_SOURCE 200809L // for strdup
#define _BSD_SOURCE // for strdup on old systems
#define _DEFAULT_SOURCE // for strdup on old systems
#include <openssl/md5.h>
#include <openssl/sha.h>

View File

@@ -17,7 +17,7 @@
*/
#define _POSIX_C_SOURCE 200809L // for strdup
#define _BSD_SOURCE // for strdup on old systems
#define _DEFAULT_SOURCE // for strdup on old systems
#include <stdint.h>
#include <openssl/sha.h>