From bed38ddc060cfc0370616e9f17a18761292a2d6b Mon Sep 17 00:00:00 2001 From: vlm Date: Fri, 29 Jun 2007 12:10:50 +0000 Subject: fixed macros git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1361 59561ff5-6e30-0410-9f3c-9617f08c8826 --- skeletons/asn_internal.h | 4 ++-- skeletons/asn_system.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/skeletons/asn_internal.h b/skeletons/asn_internal.h index 674ed511..249d7ef6 100644 --- a/skeletons/asn_internal.h +++ b/skeletons/asn_internal.h @@ -37,9 +37,9 @@ int get_asn1c_environment_version(void); /* Run-time version */ #ifdef __GNUC__ #ifdef ASN_THREAD_SAFE #define asn_debug_indent 0 -#endif +#else /* !ASN_THREAD_SAFE */ int asn_debug_indent; -#endif +#endif /* ASN_THREAD_SAFE */ #define ASN_DEBUG(fmt, args...) do { \ int adi = asn_debug_indent; \ while(adi--) fprintf(stderr, " "); \ diff --git a/skeletons/asn_system.h b/skeletons/asn_system.h index 51af1dfb..fe696454 100644 --- a/skeletons/asn_system.h +++ b/skeletons/asn_system.h @@ -105,7 +105,7 @@ typedef unsigned int uint32_t; #endif /* Figure out if thread safety is requested */ -#if !defined(ASN_THREAD_SAFE) && (defined(THREAD_SAFE) || define(_REENTRANT)) +#if !defined(ASN_THREAD_SAFE) && (defined(THREAD_SAFE) || defined(_REENTRANT)) #define ASN_THREAD_SAFE #endif /* Thread safety */ -- cgit v1.2.3