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,6 +1,7 @@
#pragma once #pragma once
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <stdarg.h>
// Microsoft uses this to refer to the secure functions so we'll allow it // Microsoft uses this to refer to the secure functions so we'll allow it
#ifdef __STDC_WANT_SECURE_LIB__ #ifdef __STDC_WANT_SECURE_LIB__

View File

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