136#ifndef _CRT_SECURE_NO_WARNINGS
137#define _CRT_SECURE_NO_WARNINGS
139#ifndef _CRT_NONSTDC_NO_WARNINGS
140#define _CRT_NONSTDC_NO_WARNINGS
151#define PLATFORM_WINDOWS 1
161#define PLATFORM_POSIX 0
164#define PLATFORM_WINDOWS 0
166#define PLATFORM_POSIX 1
201#define PACKED_STRUCT_BEGIN __pragma(pack(push, 1))
210#define PACKED_STRUCT_END __pragma(pack(pop))
233#define ALIGNED_ATTR(x) __declspec(align(x))
238#define PACKED_STRUCT_BEGIN
240#define PACKED_STRUCT_END
256#define PACKED_ATTR __attribute__((packed))
263#define ALIGNED_ATTR(x) __attribute__((aligned(x)))
337#define THREAD_LOCAL __declspec(thread)
346#define ALIGNED_32 __declspec(align(32))
355#define ALIGNED_16 __declspec(align(16))
362#define THREAD_LOCAL __thread
367#define ALIGNED_32 __attribute__((aligned(32)))
372#define ALIGNED_16 __attribute__((aligned(16)))
381#define THREAD_LOCAL __thread
386#define ALIGNED_32 __attribute__((aligned(32)))
391#define ALIGNED_16 __attribute__((aligned(16)))
461#define STDIN_FILENO 0
463#define STDOUT_FILENO 1
465#define STDERR_FILENO 2
475typedef unsigned long nfds_t;
478#ifndef SIO_KEEPALIVE_VALS
485#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR, 4)
532#define unlink _unlink
539#define isatty _isatty
544#define getpid _getpid
566void *aligned_alloc(
size_t alignment,
size_t size);
579int clock_gettime(
int clk_id,
struct timespec *tp);
592struct tm *gmtime_r(
const time_t *timep,
struct tm *result);
604typedef unsigned int useconds_t;
626#ifndef CLOCK_REALTIME
634#define CLOCK_REALTIME 0
635#ifndef CLOCK_MONOTONIC
643#define CLOCK_MONOTONIC 1
733#define UNUSED(x) ((void)(x))
Cross-platform condition variable interface for ascii-chat.
Cross-platform file I/O interface for ascii-chat.
Cross-platform file system operations.
Application limits and constraints.
🔒 Lock debugging and deadlock detection system for ascii-chat
Cross-platform mutex interface for ascii-chat.
Cross-platform pipe/agent socket interface for ascii-chat.
Cross-platform process execution utilities.
Cross-platform read-write lock interface for ascii-chat.
Cross-platform socket interface for ascii-chat.
Cross-platform system functions interface for ascii-chat.
🖥️ Cross-platform terminal interface for ascii-chat
⏱️ High-precision timing utilities using sokol_time.h and uthash
#️⃣ Wrapper for uthash.h that ensures common.h is included first
🔤 String Manipulation and Shell Escaping Utilities