aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons
diff options
context:
space:
mode:
Diffstat (limited to 'skeletons')
-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) */