Fixed GCC 6+ compilation error

In file included from /usr/include/c++/6/math.h:36:0,
                 from src/vectors.h:43,
                 from src/sound/i_soundinternal.h:7,
                 from src/sound/i_sound.h:39,
                 from src/sound/i_musicinterns.h:5,
                 from src/sound/timidity/timidity.cpp:36:
/usr/include/c++/6/cmath:407:11: error: ‘::pow’ has not been declared
This commit is contained in:
alexey.lysiuk 2018-02-26 14:46:24 +02:00
parent 22819e640a
commit 6bc2be1ca4

View file

@ -24,7 +24,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <memory> #include <memory>
#include "timidity.h"
#include "templates.h" #include "templates.h"
#include "cmdlib.h" #include "cmdlib.h"
#include "c_cvars.h" #include "c_cvars.h"
@ -35,6 +34,7 @@
#include "i_soundfont.h" #include "i_soundfont.h"
#include "i_musicinterns.h" #include "i_musicinterns.h"
#include "v_text.h" #include "v_text.h"
#include "timidity.h"
CUSTOM_CVAR(String, midi_config, CONFIG_FILE, CVAR_ARCHIVE | CVAR_GLOBALCONFIG) CUSTOM_CVAR(String, midi_config, CONFIG_FILE, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
{ {