_BSD_SOURCE moved to a more global location

This commit is contained in:
Lev Walkin 2016-07-02 23:51:32 -07:00
parent eabd277f06
commit bce0ce4351
2 changed files with 4 additions and 4 deletions

View File

@ -3,10 +3,6 @@
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef _BSD_SOURCE
#define _BSD_SOURCE /* for snprintf() on some linux systems */
#endif
#include <stdio.h>
#include <asn_internal.h>
#include <INTEGER.h>
#include <asn_codecs_prim.h> /* Encoder and decoder of a primitive type */

View File

@ -13,6 +13,10 @@
#include "config.h"
#endif
#ifndef _BSD_SOURCE
#define _BSD_SOURCE /* for snprintf() on some linux systems */
#endif
#include <stdio.h> /* For snprintf(3) */
#include <stdlib.h> /* For *alloc(3) */
#include <string.h> /* For memcpy(3) */