From bce0ce4351e595ae25f2cb91ffe6d2949ce7ea25 Mon Sep 17 00:00:00 2001 From: Lev Walkin Date: Sat, 2 Jul 2016 23:51:32 -0700 Subject: [PATCH] _BSD_SOURCE moved to a more global location --- skeletons/INTEGER.c | 4 ---- skeletons/asn_system.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/skeletons/INTEGER.c b/skeletons/INTEGER.c index a839b32b..eed82176 100644 --- a/skeletons/INTEGER.c +++ b/skeletons/INTEGER.c @@ -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 #include #include #include /* Encoder and decoder of a primitive type */ diff --git a/skeletons/asn_system.h b/skeletons/asn_system.h index 24d8da79..d19837ed 100644 --- a/skeletons/asn_system.h +++ b/skeletons/asn_system.h @@ -13,6 +13,10 @@ #include "config.h" #endif +#ifndef _BSD_SOURCE +#define _BSD_SOURCE /* for snprintf() on some linux systems */ +#endif + #include /* For snprintf(3) */ #include /* For *alloc(3) */ #include /* For memcpy(3) */