summaryrefslogtreecommitdiff
path: root/lib/int.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/int.h')
-rw-r--r--lib/int.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/int.h b/lib/int.h
index f1f1302..7d2eea3 100644
--- a/lib/int.h
+++ b/lib/int.h
@@ -118,6 +118,12 @@ extern const tag_and_class_st _asn1_tags[];
#define _asn1_strcpy(a,b) strcpy((char *)a, (const char *)b)
#define _asn1_strcat(a,b) strcat((char *)a, (const char *)b)
+#if SIZEOF_UNSIGNED_LONG_INT == 8
+# define _asn1_strtou64(n,e,b) strtoul((const char *) n, e, b)
+#else
+# define _asn1_strtou64(n,e,b) strtoull((const char *) n, e, b)
+#endif
+
#define MAX_LOG_SIZE 1024 /* maximum number of characters of a log message */
/* Define used for visiting trees. */