Skip to content

Commit

Permalink
fix: Fix rare compilation issue
Browse files Browse the repository at this point in the history
It could happen bc of a certain order of including headers that `_DEFAULT_SOURCE` was redefined.
  • Loading branch information
itislu committed Nov 14, 2024
1 parent 3c7e107 commit ec9b0f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
#ifndef DEFINES_H
# define DEFINES_H

# define _DEFAULT_SOURCE
# ifndef _DEFAULT_SOURCE
# define _DEFAULT_SOURCE
# endif

# include <dirent.h>
# include <errno.h>
Expand Down

0 comments on commit ec9b0f3

Please sign in to comment.