From dfda6b6e55f75cc0dd77b13b08d83d8ca3b3842f Mon Sep 17 00:00:00 2001 From: pryazha Date: Thu, 11 Sep 2025 19:22:37 +0500 Subject: change final build target to libprb.a that one can link with --- prb.h | 38 +++++++++++++++----------------------- 1 file changed, 15 insertions(+), 23 deletions(-) (limited to 'prb.h') diff --git a/prb.h b/prb.h index fad7ff0..829f294 100644 --- a/prb.h +++ b/prb.h @@ -1,30 +1,22 @@ -#ifndef PRB_H -#define PRB_H +#ifndef prb_h +#define prb_h -#include -#include -#include -#include -#include +#include "types.h" +#include "macros.h" +#include "sys.h" +#include "arena.h" +#include "prbm.h" +#include "prbs.h" -#include "prb_types.h" -#include "prb_macros.h" -#include "prb_math.h" -#include "prb_arena.h" -#include "prb_sys.h" -#include "prb_string.h" - -#define OS_NONE 0 -#define OS_WINDOWS 1 -#define OS_LINUX 2 +#define os_none 0 +#define os_windows 1 +#define os_linux 2 #if defined(__linux) -#define OS OS_LINUX -#include "prb_linux.h" +# define os os_linux #elif defined(__WIN64) -#define OS OS_WINDOWS -#include -#include "prb_windows.h" +# define os os_windows +# include #endif -#endif /* PRB_H */ +#endif -- cgit v1.2.3-70-g09d2