fix: compilation on macos
This commit is contained in:
parent
89b5e3aaf7
commit
882669f5a5
3 changed files with 4 additions and 5 deletions
4
Makefile
4
Makefile
|
|
@ -6,7 +6,7 @@
|
|||
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2023/11/12 11:05:05 by rparodi #+# #+# #
|
||||
# Updated: 2024/03/08 14:28:29 by rparodi ### ########.fr #
|
||||
# Updated: 2024/11/08 12:38:10 by rparodi ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
# Variables
|
||||
|
|
@ -23,7 +23,7 @@ RM = rm -rf
|
|||
# Flags
|
||||
CFLAGS = -Werror -Wextra -Wall -Wno-unused-command-line-argument -g3 -MMD
|
||||
MINILIBX = make -C ./minilibx-linux/
|
||||
MLXFLAGS = -Lmlx_linux -L/usr/lib -lXext -lX11 -lm -lz
|
||||
MLXFLAGS = -L/opt/X11/lib -lX11 -lXext -lXrender -lXrandr -lXi
|
||||
|
||||
# Sources
|
||||
LIB = ./libft/ft_printf.c \
|
||||
|
|
|
|||
1
minilibx-linux
Submodule
1
minilibx-linux
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 7dc53a411a7d4ae286c60c6229bd1e395b0efb82
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/12/19 13:25:35 by rparodi #+# #+# */
|
||||
/* Updated: 2024/03/10 17:55:57 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/11/08 11:41:39 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -53,11 +53,9 @@ void display_map(t_mlx *mlx)
|
|||
t_image image;
|
||||
size_t i;
|
||||
size_t j;
|
||||
size_t k;
|
||||
|
||||
i = 0;
|
||||
j = 0;
|
||||
k = 0;
|
||||
while (j < mlx->map_h && mlx->map[j])
|
||||
{
|
||||
while (i + 1 < mlx->map_l && mlx->map[j][i] != '\0'\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue