Implementation of IO Ring in Windows

Fixing the two compilation warnings.
This commit is contained in:
2026-03-31 00:26:03 +01:00
parent 81d47fb675
commit d4ba121b56
17 changed files with 1078 additions and 152 deletions

16
base.h
View File

@@ -1,9 +1,11 @@
#pragma once
#define _CRT_SECURE_NO_WARNINGS
#include <assert.h>
#include <immintrin.h>
#include <stdatomic.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@@ -11,13 +13,25 @@
#include <time.h>
#if defined(_WIN32) || defined(_WIN64)
#define PLATFORM_WINDOWS 1
// #define PLATFORM_WINDOWS 1
// #define WIN32_LEAN_AND_MEAN
// #define NTDDI_VERSION NTDDI_WIN11
//
// #pragma comment(lib, "kernel32.Lib")
#include <aclapi.h>
#include <fcntl.h>
#include <io.h>
#include <ioringapi.h>
#include <ntioring_x.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <windows.h>
#include <winerror.h>
#if defined(_MSC_VER)
#pragma comment(lib, "advapi32.lib")
#endif
#define strdup _strdup
#else