Skip to content

include of float.h #559

@aramos-gua

Description

@aramos-gua

Describe the bug
Whenever including the float.h header in a .h file, even following the Norm guidelines, an error pops up with "norminette: Invalid file argument for #include directive". However, when defining my variables as macros, norminette stops complaining

Erroneous code

#ifndef FDF_H
# define FDF_H

# ifndef WEIGHT
#  define HEIGHT 1080
#  ifndef WIDTH
#   define WIDTH 1920
#  endif
# endif

# include "mlx_linux/mlx.h"
# include "libft/libft.h"
# include <X11/keysym.h>
# include <stdlib.h>
# include <float.h>
# include <fcntl.h>
# include <math.h>

#endif

Additional infos
"Error: Invalid file argument for #include directive"

Additional context
Got fixed when defining the macros I needed (FLT_MIN, FLT_MAX)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions