Commit 27f53bcd authored by Lev Walkin's avatar Lev Walkin

fixed macros

parent 3e86a4ea
...@@ -37,9 +37,9 @@ int get_asn1c_environment_version(void); /* Run-time version */ ...@@ -37,9 +37,9 @@ int get_asn1c_environment_version(void); /* Run-time version */
#ifdef __GNUC__ #ifdef __GNUC__
#ifdef ASN_THREAD_SAFE #ifdef ASN_THREAD_SAFE
#define asn_debug_indent 0 #define asn_debug_indent 0
#endif #else /* !ASN_THREAD_SAFE */
int asn_debug_indent; int asn_debug_indent;
#endif #endif /* ASN_THREAD_SAFE */
#define ASN_DEBUG(fmt, args...) do { \ #define ASN_DEBUG(fmt, args...) do { \
int adi = asn_debug_indent; \ int adi = asn_debug_indent; \
while(adi--) fprintf(stderr, " "); \ while(adi--) fprintf(stderr, " "); \
......
...@@ -105,7 +105,7 @@ typedef unsigned int uint32_t; ...@@ -105,7 +105,7 @@ typedef unsigned int uint32_t;
#endif #endif
/* Figure out if thread safety is requested */ /* 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 #define ASN_THREAD_SAFE
#endif /* Thread safety */ #endif /* Thread safety */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment