commit 7f385e9576e7ca00508daddd0c10d86f0ff7bc42 parent 4e036f81253e75f9c56b959a102fa72685b92636 Author: Alexandre BIQUE <bique.alexandre@gmail.com> Date: Sun, 27 Feb 2022 09:08:00 +0100 Remove all pragma packs Fixes #21 Diffstat:
42 files changed, 1 insertion(+), 181 deletions(-)
diff --git a/include/clap/audio-buffer.h b/include/clap/audio-buffer.h @@ -1,13 +1,11 @@ #pragma once -#include "private/align.h" +#include "private/std.h" #ifdef __cplusplus extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - // Sample code for reading a stereo buffer: // // bool isLeftConstant = (buffer->constant_mask & (1 << 0)) != 0; @@ -34,8 +32,6 @@ typedef struct clap_audio_buffer { uint64_t constant_mask; // mask & (1 << N) to test if channel N is constant } clap_audio_buffer_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/color.h b/include/clap/color.h @@ -6,8 +6,6 @@ extern "C" { #endif -#pragma pack(push, 1) - typedef struct clap_color { uint8_t alpha; uint8_t red; @@ -15,8 +13,6 @@ typedef struct clap_color { uint8_t blue; } clap_color_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/converters/clap-converter.h b/include/clap/converters/clap-converter.h @@ -2,14 +2,11 @@ #include "../clap.h" #include "../stream.h" -#include "../private/align.h" #ifdef __cplusplus extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - // This interface provide all the tool to convert a clap plugin instance into a clap plugin instance typedef struct clap_clap_converter { const char *src_plugin_id; @@ -50,8 +47,6 @@ typedef struct clap_clap_converter_factory { uint32_t index); } clap_clap_converter_factory_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/converters/vst2-converter.h b/include/clap/converters/vst2-converter.h @@ -2,14 +2,11 @@ #include "../clap.h" #include "../stream.h" -#include "../private/align.h" #ifdef __cplusplus extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - // This interface provide all the tool to convert a vst2 plugin instance into a clap plugin instance typedef struct clap_vst2_converter { uint32_t vst2_plugin_id; @@ -51,8 +48,6 @@ typedef struct clap_vst2_converter_factory { uint32_t index); } clap_vst2_converter_factory_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/converters/vst3-converter.h b/include/clap/converters/vst3-converter.h @@ -2,14 +2,11 @@ #include "../clap.h" #include "../stream.h" -#include "../private/align.h" #ifdef __cplusplus extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - // This interface provide all the tool to convert a vst3 plugin instance into a clap plugin instance typedef struct clap_vst3_converter { // The VST FUID can be constructed by: @@ -53,8 +50,6 @@ typedef struct clap_vst3_converter_factory { uint32_t index); } clap_vst3_converter_factory_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/entry.h b/include/clap/entry.h @@ -3,14 +3,11 @@ #include "version.h" #include "private/macros.h" -#include "private/align.h" #ifdef __cplusplus extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - // This interface is the entry point of the dynamic library. // // CLAP plugins standard search path: @@ -58,8 +55,6 @@ typedef struct clap_plugin_entry { /* Entry point */ CLAP_EXPORT extern const clap_plugin_entry_t clap_entry; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/events.h b/include/clap/events.h @@ -1,17 +1,13 @@ #pragma once #include "private/std.h" - #include "fixedpoint.h" #include "id.h" -#include "private/align.h" #ifdef __cplusplus extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - // event header // must be the first attribute of the event typedef struct clap_event_header { @@ -247,8 +243,6 @@ typedef struct clap_output_events { void (*push_back)(const struct clap_output_events *list, const clap_event_header_t *event); } clap_output_events_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/ext/audio-ports-config.h b/include/clap/ext/audio-ports-config.h @@ -27,8 +27,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_AUDIO_PORTS_CONFIG[] = "clap.audio-por extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - // Minimalistic description of ports configuration typedef struct clap_audio_ports_config { clap_id id; @@ -65,8 +63,6 @@ typedef struct clap_host_audio_ports_config { void (*rescan)(const clap_host_t *host); } clap_host_audio_ports_config_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/ext/audio-ports.h b/include/clap/ext/audio-ports.h @@ -20,8 +20,6 @@ static CLAP_CONSTEXPR const char CLAP_PORT_STEREO[] = "stereo"; extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - enum { // This port main audio input or output. // There can be only one main input and main output. @@ -101,8 +99,6 @@ typedef struct clap_host_audio_ports { void (*rescan)(const clap_host_t *host, uint32_t flags); } clap_host_audio_ports_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/ext/draft/ambisonic.h b/include/clap/ext/draft/ambisonic.h @@ -12,8 +12,6 @@ static CLAP_CONSTEXPR const char CLAP_PORT_AMBISONIC[] = "ambisonic"; extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - enum { // FuMa channel ordering CLAP_AMBISONIC_FUMA = 0, @@ -52,8 +50,6 @@ typedef struct clap_host_ambisonic { void (*changed)(const clap_host_t *host); } clap_host_ambisonic_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/ext/draft/check-for-update.h b/include/clap/ext/draft/check-for-update.h @@ -8,8 +8,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_CHECK_FOR_UPDATE[] = "clap.check_for_u extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - typedef struct clap_check_for_update_info { const char *version; const char *release_date; // YYYY-MM-DD @@ -28,8 +26,6 @@ typedef struct clap_host_check_for_update { void (*on_new_version)(const clap_host_t *host, const clap_check_for_update_info_t *update_info); } clap_host_check_for_update_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/ext/draft/cv.h b/include/clap/ext/draft/cv.h @@ -12,8 +12,6 @@ static CLAP_CONSTEXPR const char CLAP_PORT_CV[] = "cv"; extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - enum { // TODO: standardize values? CLAP_CV_VALUE = 0, @@ -38,8 +36,6 @@ typedef struct clap_host_cv { void (*changed)(const clap_host_t *host); } clap_host_cv_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/ext/draft/file-reference.h b/include/clap/ext/draft/file-reference.h @@ -10,8 +10,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_FILE_REFERENCE[] = "clap.file-referenc extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - /// @page File Reference /// /// This extension provides a way for the host to know about files which are used @@ -68,8 +66,6 @@ typedef struct clap_host_file_reference { void (*set_dirty)(const clap_host_t *host, clap_id resource_id); } clap_host_file_reference; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/ext/draft/midi-mappings.h b/include/clap/ext/draft/midi-mappings.h @@ -8,8 +8,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_MIDI_MAPPINGS[] = "clap.midi-mappings. extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - enum { CLAP_MIDI_MAPPING_CC7, CLAP_MIDI_MAPPING_CC14, @@ -37,8 +35,6 @@ typedef struct clap_host_midi_mappings { void (*changed)(const clap_host_t *host); } clap_host_midi_mappings_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/ext/draft/preset-load.h b/include/clap/ext/draft/preset-load.h @@ -8,16 +8,12 @@ static const char CLAP_EXT_PRESET_LOAD[] = "clap.preset-load.draft/0"; extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - typedef struct clap_plugin_preset_load { // Loads a preset in the plugin native preset file format from a path. // [main-thread] bool (*from_file)(const clap_plugin_t *plugin, const char *path); } clap_plugin_preset_load_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/ext/draft/quick-controls.h b/include/clap/ext/draft/quick-controls.h @@ -9,8 +9,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_QUICK_CONTROLS[] = "clap.quick-control extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - enum { CLAP_QUICK_CONTROLS_COUNT = 8 }; typedef struct clap_quick_controls_page { @@ -46,8 +44,6 @@ typedef struct clap_host_quick_controls { void (*changed)(const clap_host_t *host, clap_quick_controls_changed_flags flags); } clap_host_quick_controls_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/ext/draft/surround.h b/include/clap/ext/draft/surround.h @@ -32,8 +32,6 @@ static CLAP_CONSTEXPR const char CLAP_PORT_SURROUND[] = "surround"; extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - enum { CLAP_SURROUND_FL = 0, // Front Left CLAP_SURROUND_FR = 1, // Front Right @@ -84,8 +82,6 @@ typedef struct clap_host_surround { uint32_t *channel_count); } clap_host_surround_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/ext/draft/track-info.h b/include/clap/ext/draft/track-info.h @@ -10,8 +10,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_TRACK_INFO[] = "clap.track-info.draft/ extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - typedef struct clap_track_info { clap_id id; int32_t index; @@ -34,8 +32,6 @@ typedef struct clap_host_track_info { bool (*get)(const clap_host_t *host, clap_track_info_t *info); } clap_host_track_info_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/ext/draft/tuning.h b/include/clap/ext/draft/tuning.h @@ -8,8 +8,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_TUNING[] = "clap.tuning.draft/0"; extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - // This extension provides a dynamic tuning table to the plugin. typedef struct clap_host_tuning { // The plugin can ask the host, the frequency of a given key, @@ -21,8 +19,6 @@ typedef struct clap_host_tuning { double (*get)(const clap_host_t *host, int32_t key, int32_t channel); } clap_host_tuning_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/ext/event-filter.h b/include/clap/ext/event-filter.h @@ -8,8 +8,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_EVENT_FILTER[] = "clap.event-filter"; extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - // This extension lets the host know which event types the plugin is interested // in. // The host will cache the set of accepted events before activating the plugin. @@ -32,8 +30,6 @@ typedef struct clap_host_event_filter { void (*changed)(const clap_host_t *host); } clap_host_event_filter_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/ext/event-registry.h b/include/clap/ext/event-registry.h @@ -8,8 +8,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_EVENT_REGISTRY[] = "clap.event-registr extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - typedef struct clap_host_event_registry { // Queries an event space id. // The space id 0 is reserved for CLAP's core events. See CLAP_CORE_EVENT_SPACE. @@ -19,8 +17,6 @@ typedef struct clap_host_event_registry { bool (*query)(const clap_host_t *host, const char *space_name, uint16_t *space_id); } clap_host_event_registry_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/ext/gui.h b/include/clap/ext/gui.h @@ -50,8 +50,6 @@ static CLAP_CONSTEXPR const char CLAP_GUI_API_FLOATING[] = "floating"; extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - typedef struct clap_gui_window_x11 { const char *display; unsigned long window; @@ -162,8 +160,6 @@ typedef struct clap_host_gui { bool (*request_hide)(const clap_host_t *host); } clap_host_gui_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/ext/latency.h b/include/clap/ext/latency.h @@ -8,8 +8,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_LATENCY[] = "clap.latency"; extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - // The audio ports scan has to be done while the plugin is deactivated. typedef struct clap_plugin_latency { // Returns the plugin latency. @@ -25,8 +23,6 @@ typedef struct clap_host_latency { void (*changed)(const clap_host_t *host); } clap_host_latency_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/ext/log.h b/include/clap/ext/log.h @@ -8,8 +8,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_LOG[] = "clap.log"; extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - enum { CLAP_LOG_DEBUG = 0, CLAP_LOG_INFO = 1, @@ -30,8 +28,6 @@ typedef struct clap_host_log { void (*log)(const clap_host_t *host, clap_log_severity severity, const char *msg); } clap_host_log_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/ext/note-name.h b/include/clap/ext/note-name.h @@ -7,8 +7,6 @@ extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - static CLAP_CONSTEXPR const char CLAP_EXT_NOTE_NAME[] = "clap.note-name"; typedef struct clap_note_name { @@ -34,8 +32,6 @@ typedef struct clap_host_note_name { void (*changed)(const clap_host_t *host); } clap_host_note_name_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/ext/note-ports.h b/include/clap/ext/note-ports.h @@ -17,8 +17,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_NOTE_PORTS[] = "clap.note-ports"; extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - enum clap_note_dialect { // Uses clap_event_note and clap_event_note_expression. // Default if the port info are not provided or inspected. @@ -76,8 +74,6 @@ typedef struct clap_host_note_ports { void (*rescan)(const clap_host_t *host, uint32_t flags); } clap_host_note_ports_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/ext/params.h b/include/clap/ext/params.h @@ -80,8 +80,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_PARAMS[] = "clap.params"; extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - enum { // Is this param stepped? (integer values only) // if so the double value is converted to integer using a cast (equivalent to trunc). @@ -278,8 +276,6 @@ typedef struct clap_host_params { void (*request_flush)(const clap_host_t *host); } clap_host_params_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/ext/posix-fd-support.h b/include/clap/ext/posix-fd-support.h @@ -8,8 +8,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_POSIX_FD_SUPPORT[] = "clap.posix-fd-su extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - enum { // IO events flags CLAP_POSIX_FD_READ = 1 << 0, @@ -38,8 +36,6 @@ typedef struct clap_host_posix_fd_support { bool (*unregister_fd)(const clap_host_t *host, int fd); } clap_host_posix_fd_support_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/ext/render.h b/include/clap/ext/render.h @@ -8,8 +8,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_RENDER[] = "clap.render"; extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - enum { // Default setting, for "realtime" processing CLAP_RENDER_REALTIME = 0, @@ -36,8 +34,6 @@ typedef struct clap_plugin_render { bool (*set)(const clap_plugin_t *plugin, clap_plugin_render_mode mode); } clap_plugin_render_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/ext/state.h b/include/clap/ext/state.h @@ -9,8 +9,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_STATE[] = "clap.state"; extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - typedef struct clap_plugin_state { // Saves the plugin state into stream. // Returns true if the state was correctly saved. @@ -30,8 +28,6 @@ typedef struct clap_host_state { void (*mark_dirty)(const clap_host_t *host); } clap_host_state_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/ext/tail.h b/include/clap/ext/tail.h @@ -8,8 +8,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_TAIL[] = "clap.tail"; extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - typedef struct clap_plugin_tail { // Returns tail length in samples. // [main-thread,audio-thread] @@ -22,8 +20,6 @@ typedef struct clap_host_tail { void (*changed)(const clap_host_t *host); } clap_host_tail_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/ext/thread-check.h b/include/clap/ext/thread-check.h @@ -8,8 +8,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_THREAD_CHECK[] = "clap.thread-check"; extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - // This interface is useful to do runtime checks and make // sure that the functions are called on the correct threads. // It is highly recommended to implement this extension @@ -23,8 +21,6 @@ typedef struct clap_host_thread_check { bool (*is_audio_thread)(const clap_host_t *host); } clap_host_thread_check_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/ext/thread-pool.h b/include/clap/ext/thread-pool.h @@ -44,8 +44,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_THREAD_POOL[] = "clap.thread-pool"; extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - typedef struct clap_plugin_thread_pool { // Called by the thread pool void (*exec)(const clap_plugin_t *plugin, uint32_t task_index); @@ -63,8 +61,6 @@ typedef struct clap_host_thread_pool { bool (*request_exec)(const clap_host_t *host, uint32_t num_tasks); } clap_host_thread_pool_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/ext/timer-support.h b/include/clap/ext/timer-support.h @@ -8,8 +8,6 @@ static CLAP_CONSTEXPR const char CLAP_EXT_TIMER_SUPPORT[] = "clap.timer-support" extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - typedef struct clap_plugin_timer_support { // [main-thread] void (*on_timer)(const clap_plugin_t *plugin, clap_id timer_id); @@ -26,8 +24,6 @@ typedef struct clap_host_timer_support { bool (*unregister_timer)(const clap_host_t *host, clap_id timer_id); } clap_host_timer_support_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/host.h b/include/clap/host.h @@ -1,14 +1,11 @@ #pragma once #include "version.h" -#include "private/align.h" #ifdef __cplusplus extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - typedef struct clap_host { clap_version_t clap_version; // initialized to CLAP_VERSION @@ -39,8 +36,6 @@ typedef struct clap_host { void (*request_callback)(const struct clap_host *host); } clap_host_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/plugin-factory.h b/include/clap/plugin-factory.h @@ -1,7 +1,6 @@ #pragma once #include "plugin.h" -#include "private/align.h" static const CLAP_CONSTEXPR char CLAP_PLUGIN_FACTORY_ID[] = "clap.plugin-factory"; @@ -9,8 +8,6 @@ static const CLAP_CONSTEXPR char CLAP_PLUGIN_FACTORY_ID[] = "clap.plugin-factory extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - // Every methods must be thread-safe. // It is very important to be able to scan the plugin as quickly as possible. // @@ -37,8 +34,6 @@ typedef struct clap_plugin_factory { const char *plugin_id); } clap_plugin_factory_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/plugin-invalidation.h b/include/clap/plugin-invalidation.h @@ -1,14 +1,11 @@ #pragma once #include "private/macros.h" -#include "private/align.h" #ifdef __cplusplus extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - typedef struct clap_plugin_invalidation_source { // Directory containing the file(s) to scan const char *directory; @@ -42,8 +39,6 @@ typedef struct clap_plugin_invalidation_factory { bool (*refresh)(const struct clap_plugin_invalidation_factory *factory); } clap_plugin_invalidation_factory_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/plugin.h b/include/clap/plugin.h @@ -4,14 +4,11 @@ #include "host.h" #include "process.h" -#include "private/align.h" #ifdef __cplusplus extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - typedef struct clap_plugin_descriptor { clap_version_t clap_version; // initialized to CLAP_VERSION @@ -101,8 +98,6 @@ typedef struct clap_plugin { void (*on_main_thread)(const struct clap_plugin *plugin); } clap_plugin_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif \ No newline at end of file diff --git a/include/clap/private/align.h b/include/clap/private/align.h @@ -1,3 +0,0 @@ -#pragma once - -#define CLAP_ALIGN 16 diff --git a/include/clap/process.h b/include/clap/process.h @@ -3,14 +3,11 @@ #include "events.h" #include "audio-buffer.h" -#include "private/align.h" #ifdef __cplusplus extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - enum { // Processing failed. The output buffer must be discarded. CLAP_PROCESS_ERROR = 0, @@ -70,8 +67,6 @@ typedef struct clap_process { const clap_output_events_t *out_events; } clap_process_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/stream.h b/include/clap/stream.h @@ -1,13 +1,10 @@ #pragma once -#include "private/align.h" #ifdef __cplusplus extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - typedef struct clap_istream { void *ctx; // reserved pointer for the stream @@ -25,8 +22,6 @@ typedef struct clap_ostream { int64_t (*write)(struct clap_ostream *stream, const void *buffer, uint64_t size); } clap_ostream_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif diff --git a/include/clap/version.h b/include/clap/version.h @@ -1,15 +1,12 @@ #pragma once #include "private/macros.h" -#include "private/align.h" #include "private/std.h" #ifdef __cplusplus extern "C" { #endif -#pragma pack(push, CLAP_ALIGN) - typedef struct clap_version { // This is the major ABI and API design // Version 0.X.Y correspond to the development stage, API and ABI are not stable @@ -19,8 +16,6 @@ typedef struct clap_version { uint32_t revision; } clap_version_t; -#pragma pack(pop) - #ifdef __cplusplus } #endif