LibC: Some build fixes for strange platforms

Patch from Anonymous.
This commit is contained in:
Andreas Kling 2019-09-29 21:02:13 +02:00
commit 6d7854919a
Notes: sideshowbarker 2024-07-19 11:52:58 +09:00
4 changed files with 11 additions and 4 deletions

View file

@ -30,6 +30,7 @@
*/
#include <ctype.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
@ -60,7 +61,8 @@ static const char* determine_base(const char* p, int& base)
static int _atob(unsigned long* vp, const char* p, int base)
{
unsigned long value, v1, v2;
char *q, tmp[20];
const char *q;
char tmp[20];
int digit;
if (p[0] == '0' && (p[1] == 'x' || p[1] == 'X')) {