aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2016-07-02 23:51:32 -0700
committerLev Walkin <vlm@lionet.info>2016-07-02 23:51:32 -0700
commitbce0ce4351e595ae25f2cb91ffe6d2949ce7ea25 (patch)
treee565c32157e4b2d22d6e6e9089eacd5e94be63ac
parenteabd277f064f86f20aa4eecab471fab0af84fec2 (diff)
_BSD_SOURCE moved to a more global location
-rw-r--r--skeletons/INTEGER.c4
-rw-r--r--skeletons/asn_system.h4
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 <stdio.h>
#include <asn_internal.h>
#include <INTEGER.h>
#include <asn_codecs_prim.h> /* 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 <stdio.h> /* For snprintf(3) */
#include <stdlib.h> /* For *alloc(3) */
#include <string.h> /* For memcpy(3) */