diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-02-23 00:27:01 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-02-23 00:27:01 +0100 |
commit | aef5fbe3d215672783bc9f998f622c40b5504c9f (patch) | |
tree | 4a7538e96b69bc14f0e08fcf48d8be14dd842409 | |
parent | GCC-friendly now (diff) | |
download | 42-cub3d-aef5fbe3d215672783bc9f998f622c40b5504c9f.tar.gz 42-cub3d-aef5fbe3d215672783bc9f998f622c40b5504c9f.tar.bz2 42-cub3d-aef5fbe3d215672783bc9f998f622c40b5504c9f.tar.xz 42-cub3d-aef5fbe3d215672783bc9f998f622c40b5504c9f.tar.zst 42-cub3d-aef5fbe3d215672783bc9f998f622c40b5504c9f.zip |
Preparing OS defines for later use
Diffstat (limited to '')
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | inc/cub3d_defines.h | 9 | ||||
-rw-r--r-- | src/ft_init_winlx.c | 4 |
3 files changed, 12 insertions, 2 deletions
@@ -104,6 +104,7 @@ ifdef POWER endif #--------------------------------------------------------------------------------------------------# CDEFS = -DFT_SCR_SIZE=\"${SCR_SZE}\" +CDEFS += -DFT_OS=\"${OS}\" ifneq (${OS}, Darwin) CDEFS += -DFT_W_KEY=119 CDEFS += -DFT_A_KEY=97 diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index dd34fa7..c4be489 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -62,6 +62,15 @@ # endif /* +** ====== OTHERS ====== +*/ + +# ifndef FT_OS +# define FT_OS "Darwin" +# endif + + +/* ** ====== MAP ERROR MSG ====== */ diff --git a/src/ft_init_winlx.c b/src/ft_init_winlx.c index 6657408..cad5795 100644 --- a/src/ft_init_winlx.c +++ b/src/ft_init_winlx.c @@ -26,7 +26,7 @@ int clist->wlist->x_size, clist->wlist->y_size, "Cub3D"))) return (-1); clist->wlist->inited = 1; - ft_printf("Created window of size %ux%u\n", - clist->wlist->x_size, clist->wlist->y_size); + ft_printf("Created window of size %ux%u\nHost OS: %s\n", + clist->wlist->x_size, clist->wlist->y_size, FT_OS); return (0); } |