treewide: fix #include errors after gcc-5.4

They were mostly missing <cmath> or <math.h>.
This commit is contained in:
Vladimír Čunát
2016-06-19 10:18:30 +02:00
parent d133a168f0
commit 97c484a10f
20 changed files with 63 additions and 6 deletions

View File

@@ -21,6 +21,7 @@ stdenv.mkDerivation rec {
};
patches = [ ./0001-change-flags.diff ];
postPatch = "sed '1i#include <cmath>' -i higan/fc/ppu/ppu.cpp";
buildInputs =
[ p7zip pkgconfig libX11 libXv udev mesa SDL libao openal libpulseaudio gtk gtksourceview ];

View File

@@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
sha256 = "0s7mxq2cgzwjfsq0vhpz6ljk7wr725nxg48128iyirf85585l691";
};
postPatch = "sed '1i#include \"x86intrin.h\"' -i common/src/x86emitter/cpudetect.cpp";
configurePhase = ''
mkdir -p build
cd build
@@ -50,6 +52,8 @@ stdenv.mkDerivation rec {
soundtouch wxGTK30 zlib
];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Playstation 2 emulator";
longDescription= ''