Changed some includes

This commit is contained in:
NeGate 2022-06-07 21:46:36 -04:00
parent 7bdca7eb73
commit 66ea2f09df
4 changed files with 7 additions and 16 deletions

View File

@ -1,11 +1,11 @@
@echo off @echo off
setlocal enabledelayedexpansion setlocal enabledelayedexpansion
set PLATFORM=win32 set PLATFORM=win
set CIABATTA_OPTIONS=--crt none -I %% -I inc set CIABATTA_OPTIONS=--crt none -I %% -I inc
del ciabatta.lib del ciabatta.lib
cuik %CIABATTA_OPTIONS% code\*.c platform\%PLATFORM%\*.c -c -o ciabatta.obj cuik %CIABATTA_OPTIONS% code\*.c code\os\%PLATFORM%\*.c -c -o ciabatta.obj
lib /out:ciabatta.lib ciabatta.obj lib /out:ciabatta.lib ciabatta.obj
cuik test\test.c --lib ciabatta.lib,kernel32.lib,user32.lib,shell32.lib %CIABATTA_OPTIONS% cuik test\test.c --lib ciabatta.lib,kernel32.lib,user32.lib,shell32.lib %CIABATTA_OPTIONS%

View File

@ -24,7 +24,7 @@
#error "Unsupported Compiler" #error "Unsupported Compiler"
#endif #endif
#if defined(_compiler_msvc) #if defined(_compiler_msvc) || defined(_compiler_cuik)
#include <intrin.h> #include <intrin.h>
#define _compiler_brk __debugbreak #define _compiler_brk __debugbreak
#elif defined(_compiler_gcc) || defined(_compiler_clang) #elif defined(_compiler_gcc) || defined(_compiler_clang)
@ -33,10 +33,4 @@
#error "_compiler_brk is not implemented for this compiler" #error "_compiler_brk is not implemented for this compiler"
#endif #endif
#if defined(_compiler_msvc) #define _compiler_curfunc __FUNCTION__
#define _compiler_curfunc __FUNCTION__
#elif defined(_compiler_gcc) || defined(_compiler_clang)
#define _compiler_curfunc __func__
#else
#error "_compiler_curfunc not implemented for this compiler"
#endif

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#include <stdint.h> #include <stdint.h>
#include <stdarg.h>
typedef struct FILE FILE; typedef struct FILE FILE;
typedef int64_t fpos_t; typedef int64_t fpos_t;

View File

@ -1,9 +1,6 @@
#pragma once #pragma once
// Defines NULL
#if !defined(NULL) #include <stddef.h>
#define NULL ((void *)0)
#endif
#if !defined(__STDC_LIB_EXT1__) #if !defined(__STDC_LIB_EXT1__)
#define __STDC_LIB_EXT1__ #define __STDC_LIB_EXT1__