Commit 2aa10de1 authored by Erika Thorsen's avatar Erika Thorsen

Only remove __attributes__ in Windows builds

parent afea72f4
...@@ -103,7 +103,12 @@ static void ASN_DEBUG(const char *fmt, ...) { (void)fmt; } ...@@ -103,7 +103,12 @@ static void ASN_DEBUG(const char *fmt, ...) { (void)fmt; }
* Check stack against overflow, if limit is set. * Check stack against overflow, if limit is set.
*/ */
#define ASN__DEFAULT_STACK_MAX (30000) #define ASN__DEFAULT_STACK_MAX (30000)
static int ASN__STACK_OVERFLOW_CHECK(asn_codec_ctx_t *ctx) { #ifdef _WIN32
static int
#else
static int __attribute__((unused))
#endif
ASN__STACK_OVERFLOW_CHECK(asn_codec_ctx_t *ctx) {
if(ctx && ctx->max_stack_size) { if(ctx && ctx->max_stack_size) {
/* ctx MUST be allocated on the stack */ /* ctx MUST be allocated on the stack */
......
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