浏览代码

Add '_GLIBCXX_USE_C99' so we can use 'std::string'

Ole 10 年之前
父节点
当前提交
d24393381d
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Makefile

+ 2 - 1
Makefile

@@ -18,7 +18,8 @@ EXAMPLE_OBJS    := $(EXAMPLE_SRCS:%.cpp=$(EXAMPLE_DIR)/%.out)
 
 # Compiler
 CXX             ?= clang++
-CXXFLAGS        += -std=c++14 -O2 -g -DDEBUG -fmessage-length=0 -Wall -Wextra -pedantic -Ilib
+CXXFLAGS        += -std=c++14 -O2 -g -DDEBUG -fmessage-length=0 -Wall -Wextra -pedantic -Ilib \
+                   -D_GLIBCXX_USE_C99
 LDLIBS          += -llua
 
 # Default targets