included stdarg.h

This commit is contained in:
NeGate 2022-06-06 17:41:20 -04:00
parent 67e15fbb4e
commit be3b3a04b6
3 changed files with 20 additions and 8 deletions

12
build_cuik.cmd Normal file
View File

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

View File

@ -1,10 +1,11 @@
#pragma once
#include <stddef.h>
#include <stdint.h>
#include <stdarg.h>
// Microsoft uses this to refer to the secure functions so we'll allow it
#ifdef __STDC_WANT_SECURE_LIB__
#define __STDC_WANT_LIB_EXT1__ 1
#define __STDC_WANT_LIB_EXT1__ 1
#endif
// Compiler Identification
@ -26,9 +27,9 @@
#endif
#if !(defined(_compiler_msvc) \
|| defined(_compiler_gnu) \
|| defined(_compiler_cuik) \
|| defined(_compiler_clang))
|| defined(_compiler_gnu) \
|| defined(_compiler_cuik) \
|| defined(_compiler_clang))
#error "Unsupported Compiler"
#endif
@ -43,12 +44,12 @@
#endif
#if !(defined(_os_win) \
|| defined(_os_linux))
|| defined(_os_linux))
#error "Unsupported OS"
#endif
#ifdef __STDC_WANT_LIB_EXT1__
typedef int errno_t;
typedef size_t rsize_t;
typedef int errno_t;
typedef size_t rsize_t;
#endif

View File

@ -1,5 +1,4 @@
#pragma once
#include "_macros.h"
extern void _assert_error(char *cond, char const *func, char const *file, char const *line);