Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'windows/utils/strtoumax.c')
-rw-r--r--windows/utils/strtoumax.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/windows/utils/strtoumax.c b/windows/utils/strtoumax.c
new file mode 100644
index 00000000..38d00014
--- /dev/null
+++ b/windows/utils/strtoumax.c
@@ -0,0 +1,12 @@
+/*
+ * Work around lack of strtoumax in older MSVC libraries.
+ */
+
+#include <stdlib.h>
+
+#include "defs.h"
+
+uintmax_t strtoumax(const char *nptr, char **endptr, int base)
+{
+ return _strtoui64(nptr, endptr, base);
+}