Skip to content

Commit

Permalink
move _BSD_SOURCE macro to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-sylvestre committed Jun 4, 2023
1 parent e2d79ce commit 9c1a63d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CXX = g++
CXXFLAGS = -I./third-party -I./src -I./third-party/glfw/include
CXXFLAGS += -std=c++11 -g3 -gdwarf-2 -Wall -Wextra -Werror=format -Werror=shadow -pedantic -pthread
CXXFLAGS += -Wno-missing-field-initializers
CXXFLAGS += -D_GNU_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L

ifeq ($(DEBUG), 1)
CXXFLAGS += -DDEBUG -O0
Expand Down
3 changes: 0 additions & 3 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
#endif

#if defined(__CYGWIN__)
#define _BSD_SOURCE
#define _DIRENT_HAVE_D_TYPE 1
#define _XOPEN_SOURCE 600
#include <dirent.h>
#endif

Expand Down

0 comments on commit 9c1a63d

Please sign in to comment.