Skip to content

Commit

Permalink
fix compatibility of filtering with Mac OS [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadbakhtiari committed Dec 13, 2018
1 parent 36735fe commit 7f13b46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
CXX=g++ -g -std=c++0x
ifeq ($(detected_OS),Darwin) # Mac OS X
CXX += -stdlib=libstdc++
endif
LDFLAGS = -I. -lm -O2 -lpthread
PREFIX = $(DESTDIR)/usr/local
#PREFIX = /usr/local
Expand All @@ -7,7 +10,7 @@ OBJDIR=.

SRCS = $(wildcard filtering/*.cc)
OBJS = $(foreach OBJ,$(SRCS:.cc=.o),$(OBJDIR)/$(OBJ))
DEPS = $(wildcard *.h)
DEPS = $(wildcard *.h)

$(OBJDIR):
if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi
Expand Down
3 changes: 2 additions & 1 deletion filtering/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <bits/stdc++.h>
#include <cstring>
#include <map>
#include <algorithm>
#include <iterator>
#include <vector>
#include <queue>
#include <set>


Expand Down

0 comments on commit 7f13b46

Please sign in to comment.