1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:27:35 +00:00

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
parent 3900eebf15
commit 6d7854919a
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')) {