Fix compiler errors

This commit is contained in:
2025-07-20 23:53:23 +02:00
parent 3b196546da
commit c3bfb86707
18 changed files with 895 additions and 145 deletions
+17 -2
View File
@@ -1,15 +1,30 @@
#include <string.h>
#include <stdlib.h>
#include <limits.h>
#include "router.h"
#ifndef _WIN32
#ifdef _WIN32
#include <windows.h>
#endif
#ifdef __linux__
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#endif
#include "router.h"
bool is_alpha(char c)
{
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');
}
bool is_digit(char c)
{
return c >= '0' && c <= '9';
}
typedef enum {
ROUTE_STATIC_DIR,
ROUTE_DYNAMIC,