diff options
author | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | 2007-06-29 12:10:50 +0000 |
---|---|---|
committer | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | 2007-06-29 12:10:50 +0000 |
commit | bed38ddc060cfc0370616e9f17a18761292a2d6b (patch) | |
tree | 4b1d036c26112d8f073819850f01a0af4a14d391 /skeletons | |
parent | d97308e7befc01baefd9aa98e929551ae080539d (diff) |
fixed macros
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1361 59561ff5-6e30-0410-9f3c-9617f08c8826
Diffstat (limited to 'skeletons')
-rw-r--r-- | skeletons/asn_internal.h | 4 | ||||
-rw-r--r-- | 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 */ |