aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2005-07-28 08:39:46 +0000
committerLev Walkin <vlm@lionet.info>2005-07-28 08:39:46 +0000
commit6a0370bfdd175c4aa607fb39449367b3520630b6 (patch)
treee0a3fd2772c5962c8654cc054b86a119f4ca6209 /skeletons
parent21b41ac140874eeef8f4282deb44572858a01e9a (diff)
extern "C" added
Diffstat (limited to 'skeletons')
-rw-r--r--skeletons/asn_internal.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/skeletons/asn_internal.h b/skeletons/asn_internal.h
index 84d692ac..0f8c029f 100644
--- a/skeletons/asn_internal.h
+++ b/skeletons/asn_internal.h
@@ -8,15 +8,19 @@
#ifndef _ASN_INTERNAL_H_
#define _ASN_INTERNAL_H_
-#define ASN1C_ENVIRONMENT_VERSION 98 /* Compile-time version */
-int get_asn1c_environment_version(void); /* Run-time version */
-
#include <asn_application.h> /* Application-visible API */
#ifndef __NO_ASSERT_H__ /* Include assert.h only for internal use. */
#include <assert.h> /* for assert() macro */
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define ASN1C_ENVIRONMENT_VERSION 98 /* Compile-time version */
+int get_asn1c_environment_version(void); /* Run-time version */
+
#define CALLOC(nmemb, size) calloc(nmemb, size)
#define MALLOC(size) malloc(size)
#define REALLOC(oldptr, size) realloc(oldptr, size)
@@ -76,4 +80,8 @@ static inline void ASN_DEBUG(const char *fmt, ...) { (void)fmt; }
if(cb(" ", 4, app_key) < 0) return -1; \
} while(0)
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _ASN_INTERNAL_H_ */