Fix Linux build errors (#3)

Enable usage of `nullptr` by passing `-std=c++0x`
- SConstruct
- src/Makefile.am

Add missing mappers to boards/Makefile.am.inc:
- boards/190.cpp
- boards/80013-B.cpp
- boards/hp10xx_hp20xx.cpp
This commit is contained in:
Chris Broome 2018-06-15 13:02:23 -04:00 committed by Brad Smith
parent 9b6ff8fe49
commit 95e82b57ba
4 changed files with 3 additions and 2 deletions

View File

@ -45,6 +45,7 @@ if platform.system == "ppc":
# Default compiler flags:
env.Append(CCFLAGS = ['-Wall', '-Wno-write-strings', '-Wno-sign-compare'])
env.Append(CXXFLAGS = ['-std=c++0x'])
if os.environ.has_key('PLATFORM'):
env.Replace(PLATFORM = os.environ['PLATFORM'])

0
autogen.sh Normal file → Executable file
View File

View File

@ -1,5 +1,5 @@
AUTOMAKE_OPTIONS = subdir-objects
fceux_CPPFLAGS =
fceux_CPPFLAGS = -std=c++0x
fceux_LDADD =
bin_PROGRAMS = fceux

View File

@ -1 +1 @@
fceux_SOURCES += boards/01-222.cpp boards/09-034a.cpp boards/103.cpp boards/106.cpp boards/108.cpp boards/112.cpp boards/116.cpp boards/117.cpp boards/120.cpp boards/121.cpp boards/12in1.cpp boards/15.cpp boards/151.cpp boards/156.cpp boards/158B.cpp boards/164.cpp boards/168.cpp boards/170.cpp boards/175.cpp boards/176.cpp boards/177.cpp boards/178.cpp boards/18.cpp boards/183.cpp boards/185.cpp boards/186.cpp boards/187.cpp boards/189.cpp boards/193.cpp boards/199.cpp boards/206.cpp boards/208.cpp boards/222.cpp boards/225.cpp boards/228.cpp boards/230.cpp boards/232.cpp boards/234.cpp boards/235.cpp boards/244.cpp boards/246.cpp boards/252.cpp boards/253.cpp boards/28.cpp boards/32.cpp boards/33.cpp boards/34.cpp boards/36.cpp boards/3d-block.cpp boards/40.cpp boards/41.cpp boards/411120-c.cpp boards/42.cpp boards/43.cpp boards/46.cpp boards/50.cpp boards/51.cpp boards/57.cpp boards/603-5052.cpp boards/62.cpp boards/65.cpp boards/67.cpp boards/68.cpp boards/69.cpp boards/71.cpp boards/72.cpp boards/77.cpp boards/79.cpp boards/80.cpp boards/8157.cpp boards/82.cpp boards/8237.cpp boards/830118C.cpp boards/88.cpp boards/8in1.cpp boards/90.cpp boards/91.cpp boards/96.cpp boards/99.cpp boards/BMW8544.cpp boards/F-15.cpp boards/__dummy_mapper.cpp boards/a9746.cpp boards/ac-08.cpp boards/addrlatch.cpp boards/ax5705.cpp boards/bandai.cpp boards/bb.cpp boards/bmc13in1jy110.cpp boards/bmc42in1r.cpp boards/bmc64in1nr.cpp boards/bmc70in1.cpp boards/bonza.cpp boards/bs-5.cpp boards/cheapocabra.cpp boards/cityfighter.cpp boards/coolboy.cpp boards/dance2000.cpp boards/datalatch.cpp boards/dream.cpp boards/edu2000.cpp boards/eh8813a.cpp boards/emu2413.c boards/et-100.cpp boards/et-4320.cpp boards/famicombox.cpp boards/ffe.cpp boards/fk23c.cpp boards/ghostbusters63in1.cpp boards/gs-2004.cpp boards/gs-2013.cpp boards/h2288.cpp boards/hp898f.cpp boards/inlnsf.cpp boards/karaoke.cpp boards/kof97.cpp boards/ks7010.cpp boards/ks7012.cpp boards/ks7013.cpp boards/ks7016.cpp boards/ks7017.cpp boards/ks7030.cpp boards/ks7031.cpp boards/ks7032.cpp boards/ks7037.cpp boards/ks7057.cpp boards/le05.cpp boards/lh32.cpp boards/lh53.cpp boards/malee.cpp boards/mihunche.cpp boards/mmc1.cpp boards/mmc2and4.cpp boards/mmc3.cpp boards/mmc5.cpp boards/n106.cpp boards/n625092.cpp boards/novel.cpp boards/onebus.cpp boards/pec-586.cpp boards/rt-01.cpp boards/sa-9602b.cpp boards/sachen.cpp boards/sb-2000.cpp boards/sc-127.cpp boards/sheroes.cpp boards/sl1632.cpp boards/subor.cpp boards/super24.cpp boards/supervision.cpp boards/t-227-1.cpp boards/t-262.cpp boards/tengen.cpp boards/tf-1201.cpp boards/transformer.cpp boards/unrom512.cpp boards/vrc1.cpp boards/vrc2and4.cpp boards/vrc3.cpp boards/vrc5.cpp boards/vrc6.cpp boards/vrc7.cpp boards/vrc7p.cpp boards/yoko.cpp
fceux_SOURCES += boards/01-222.cpp boards/09-034a.cpp boards/103.cpp boards/106.cpp boards/108.cpp boards/112.cpp boards/116.cpp boards/117.cpp boards/120.cpp boards/121.cpp boards/12in1.cpp boards/15.cpp boards/151.cpp boards/156.cpp boards/158B.cpp boards/164.cpp boards/168.cpp boards/170.cpp boards/175.cpp boards/176.cpp boards/177.cpp boards/178.cpp boards/18.cpp boards/183.cpp boards/185.cpp boards/186.cpp boards/187.cpp boards/189.cpp boards/190.cpp boards/193.cpp boards/199.cpp boards/206.cpp boards/208.cpp boards/222.cpp boards/225.cpp boards/228.cpp boards/230.cpp boards/232.cpp boards/234.cpp boards/235.cpp boards/244.cpp boards/246.cpp boards/252.cpp boards/253.cpp boards/28.cpp boards/32.cpp boards/33.cpp boards/34.cpp boards/36.cpp boards/3d-block.cpp boards/40.cpp boards/41.cpp boards/411120-c.cpp boards/42.cpp boards/43.cpp boards/46.cpp boards/50.cpp boards/51.cpp boards/57.cpp boards/603-5052.cpp boards/62.cpp boards/65.cpp boards/67.cpp boards/68.cpp boards/69.cpp boards/71.cpp boards/72.cpp boards/77.cpp boards/79.cpp boards/80.cpp boards/80013-B.cpp boards/8157.cpp boards/82.cpp boards/8237.cpp boards/830118C.cpp boards/88.cpp boards/8in1.cpp boards/90.cpp boards/91.cpp boards/96.cpp boards/99.cpp boards/BMW8544.cpp boards/F-15.cpp boards/__dummy_mapper.cpp boards/a9746.cpp boards/ac-08.cpp boards/addrlatch.cpp boards/ax5705.cpp boards/bandai.cpp boards/bb.cpp boards/bmc13in1jy110.cpp boards/bmc42in1r.cpp boards/bmc64in1nr.cpp boards/bmc70in1.cpp boards/bonza.cpp boards/bs-5.cpp boards/cheapocabra.cpp boards/cityfighter.cpp boards/coolboy.cpp boards/dance2000.cpp boards/datalatch.cpp boards/dream.cpp boards/edu2000.cpp boards/eh8813a.cpp boards/emu2413.c boards/et-100.cpp boards/et-4320.cpp boards/famicombox.cpp boards/ffe.cpp boards/fk23c.cpp boards/ghostbusters63in1.cpp boards/gs-2004.cpp boards/gs-2013.cpp boards/h2288.cpp boards/hp10xx_hp20xx.cpp boards/hp898f.cpp boards/inlnsf.cpp boards/karaoke.cpp boards/kof97.cpp boards/ks7010.cpp boards/ks7012.cpp boards/ks7013.cpp boards/ks7016.cpp boards/ks7017.cpp boards/ks7030.cpp boards/ks7031.cpp boards/ks7032.cpp boards/ks7037.cpp boards/ks7057.cpp boards/le05.cpp boards/lh32.cpp boards/lh53.cpp boards/malee.cpp boards/mihunche.cpp boards/mmc1.cpp boards/mmc2and4.cpp boards/mmc3.cpp boards/mmc5.cpp boards/n106.cpp boards/n625092.cpp boards/novel.cpp boards/onebus.cpp boards/pec-586.cpp boards/rt-01.cpp boards/sa-9602b.cpp boards/sachen.cpp boards/sb-2000.cpp boards/sc-127.cpp boards/sheroes.cpp boards/sl1632.cpp boards/subor.cpp boards/super24.cpp boards/supervision.cpp boards/t-227-1.cpp boards/t-262.cpp boards/tengen.cpp boards/tf-1201.cpp boards/transformer.cpp boards/unrom512.cpp boards/vrc1.cpp boards/vrc2and4.cpp boards/vrc3.cpp boards/vrc5.cpp boards/vrc6.cpp boards/vrc7.cpp boards/vrc7p.cpp boards/yoko.cpp