Make header files more self-contained - add missing std includes

This commit is contained in:
Mads Kiilerich
2024-10-20 00:46:31 +02:00
parent 8a5f21d8e3
commit 955e634371
28 changed files with 57 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
#ifndef __gtk2_ardour_ghost_event_h__
#define __gtk2_ardour_ghost_event_h__
#include <memory>
#include <unordered_map>
#include <sigc++/trackable.h>

View File

@@ -19,6 +19,11 @@
#ifndef _gtkardour_loudness_settings_h_
#define _gtkardour_loudness_settings_h_
#include <cstddef>
#include <stdexcept>
#include <string>
#include <vector>
class XMLNode;
struct CLoudnessPreset

View File

@@ -17,6 +17,9 @@
*/
#ifndef _luasignal_h_
#define _luasignal_h_
#include <string>
namespace LuaSignal {
#define ENGINE(name,c) name,

View File

@@ -19,6 +19,8 @@
#pragma once
#include <cstdint>
inline static void clamp_to_0_127(uint8_t &val)
{
if ((127 < val) && (val < 192)) {

View File

@@ -26,6 +26,8 @@
* Held centrally by the Editor because some cursors are used in several places.
*/
#include <string>
class MouseCursors
{
public:

View File

@@ -19,6 +19,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#pragma once
#include <gtkmm/comboboxtext.h>
#include <gtkmm/spinbutton.h>
#include <gtkmm/comboboxtext.h>

View File

@@ -18,6 +18,8 @@
#pragma once
#include <string>
namespace ARDOUR {
void pingback (const std::string& this_version,
const std::string& announce_path);

View File

@@ -24,5 +24,5 @@
class MixerStrip;
struct MixerStripSelection : list<MixerStrip*> {};
struct MixerStripSelection : std::list<MixerStrip*> {};

View File

@@ -22,6 +22,8 @@
#include "ardour/libardour_visibility.h"
#include <memory>
namespace ARDOUR {
template<typename T>

View File

@@ -18,6 +18,8 @@
#pragma once
#include <memory>
namespace ARDOUR {
class ControlGroup;

View File

@@ -19,6 +19,7 @@
#pragma once
#include <algorithm>
#include <cassert>
#include <iostream>
#include "pbd/ringbufferNPT.h"

View File

@@ -25,6 +25,8 @@
#include "ardour/midi_state_tracker.h"
#include "ardour/types.h"
#include <memory>
namespace ARDOUR
{
class MidiBuffer;

View File

@@ -20,6 +20,7 @@
#include <cstdio>
#include <cstdint>
#include <functional>
#include <string>
#include <vector>

View File

@@ -23,6 +23,8 @@
#include "pbd/fastlog.h"
#include <glibmm/threads.h>
#include <cstdint>
namespace ARDOUR {
class LIBARDOUR_API LogCurve {

View File

@@ -19,6 +19,8 @@
#pragma once
#include <cstdint>
#ifdef __cplusplus
extern "C" {
#endif

View File

@@ -19,6 +19,7 @@
#ifndef _ardour_vst3_scan_h_
#define _ardour_vst3_scan_h_
#include <functional>
#include <memory>
#include <string>
#include <vector>

View File

@@ -19,6 +19,8 @@
#include <stdint.h>
#include <sys/select.h>
#include <cstddef>
/* select() sleeps _at most_ a given time.
* (compared to usleep() or nanosleep() which sleep at least a given time)
*/

View File

@@ -1,6 +1,9 @@
#ifndef MIDI_DEVICE_INFO_H
#define MIDI_DEVICE_INFO_H
#include <cstdint>
#include <string>
/* midi settings */
struct MidiDeviceInfo {
MidiDeviceInfo(const std::string& dev_name)

View File

@@ -19,6 +19,7 @@
#ifndef MIDI_UTIL_H
#define MIDI_UTIL_H
#include <cstddef>
#include <stdint.h>
struct MidiEventHeader {

View File

@@ -19,6 +19,7 @@
#ifndef __ardour_control_protocol_types_h__
#define __ardour_control_protocol_types_h__
#include <memory>
#include <vector>
namespace ARDOUR {

View File

@@ -23,6 +23,8 @@
#define EVORAL_SMF_HPP
#include <glibmm/threads.h>
#include <memory>
#include <set>
#include "evoral/visibility.h"

View File

@@ -25,6 +25,8 @@
#include "types.h"
#include <cstdint>
namespace ArdourSurface { namespace MACKIE_NAMESPACE {
/**

View File

@@ -16,6 +16,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <cstdint>
static const uint8_t maschine_png[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x40,

View File

@@ -22,6 +22,8 @@
#include <stdint.h>
#include "pbd/signals.h"
#include <cmath>
namespace ArdourSurface {
class M2PadInterface
@@ -106,7 +108,7 @@ class M2Pad : public M2PadInterface
released (); /* EMIT SIGNAL */
event (_pressure, true); /* EMIT SIGNAL */
} else {
if (fabsf (_last - _pressure) > mindelta) {
if (std::fabsf (_last - _pressure) > mindelta) {
_last = _pressure;
aftertouch (_pressure); /* EMIT SIGNAL */
event (_pressure, false); /* EMIT SIGNAL */

View File

@@ -24,6 +24,8 @@
#include <cairomm/surface.h>
#include "pbd/signals.h"
#include <cmath>
namespace ArdourSurface {
class M2Contols;
@@ -63,7 +65,7 @@ class M2Device
protected:
void bump_blink () {
_blink_counter = (_blink_counter + 1) % 12;
_blink_shade = fabsf (1.f - _blink_counter / 6.f);
_blink_shade = std::fabsf (1.f - _blink_counter / 6.f);
}
uint32_t _splashcnt;

View File

@@ -19,6 +19,8 @@
#ifndef timer_h
#define timer_h
#include <cstdint>
#ifdef _WIN32
#include "windows.h"
#else

View File

@@ -19,6 +19,8 @@
#ifndef _ardour_surface_websockets_json_h_
#define _ardour_surface_websockets_json_h_
#include <string>
namespace ArdourSurface {
namespace WebSocketsJSON

View File

@@ -18,7 +18,9 @@
#pragma once
#include <cassert>
#include <cstdlib>
#include <ostream>
#include <stdint.h>
#include "pbd/integer_division.h"