diff options
-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); } |