diff options
author | Neil <nyamatongwe@gmail.com> | 2016-03-07 09:54:27 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2016-03-07 09:54:27 +1100 |
commit | ee52a9e466d956214c9e12498a3f41159b54d678 (patch) | |
tree | 02d6ca09d336f8aac0fdbc489e87d49e833931f6 | |
parent | 98e216dbae4e4d5dc174378406f9d5488ad09335 (diff) | |
download | scintilla-mirror-ee52a9e466d956214c9e12498a3f41159b54d678.tar.gz |
To avoid failures with MinGW 4.9 switch language standard from c++0x to gnu++0x.
MinGW 4.9 doesn't install a copy of gcc as cc.exe so explicitly set CC=gcc.
-rw-r--r-- | gtk/makefile | 3 | ||||
-rw-r--r-- | win32/makefile | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gtk/makefile b/gtk/makefile index f9086fa34..ca8d7c656 100644 --- a/gtk/makefile +++ b/gtk/makefile @@ -37,6 +37,7 @@ PICFLAGS = -fPIC endif ifdef windir +CC = gcc DEL = del /q COMPLIB=..\bin\scintilla.a else @@ -74,7 +75,7 @@ CTFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS) $(THREADFLAGS) endif CFLAGS:=$(CTFLAGS) -CXXTFLAGS:=--std=c++0x $(CTFLAGS) $(REFLAGS) +CXXTFLAGS:=--std=gnu++0x $(CTFLAGS) $(REFLAGS) CONFIGFLAGS:=$(shell pkg-config --cflags $(GTKVERSION)) MARSHALLER=scintilla-marshal.o diff --git a/win32/makefile b/win32/makefile index 668812553..05d6f8f70 100644 --- a/win32/makefile +++ b/win32/makefile @@ -31,7 +31,7 @@ ifneq "$(shell g++ -c CheckD2D.cxx 2>&1)" "" D2DFLAGS=-DDISABLE_D2D endif -CXXBASEFLAGS=--std=c++0x -Wall -pedantic $(INCLUDEDIRS) $(D2DFLAGS) +CXXBASEFLAGS=--std=gnu++0x -Wall -pedantic $(INCLUDEDIRS) $(D2DFLAGS) ifdef CXX11_REGEX REFLAGS=-DCXX11_REGEX |