nongnu.org/gsequencer


gsequencer 7.0.5
Advanced Gtk+ Sequencer
ags_vst_fplatform.h
Go to the documentation of this file.
1/* GSequencer - Advanced GTK Sequencer
2 * Copyright (C) 2005-2022 Joël Krähemann
3 *
4 * This file is part of GSequencer.
5 *
6 * GSequencer is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * GSequencer is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with GSequencer. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef __AGS_VST_FPLATFORM_H__
21#define __AGS_VST_FPLATFORM_H__
22
23#include <glib.h>
24
25#include <ags/ags_api_config.h>
26
27#define AGS_VST_KLITTLE_ENDIAN (0)
28#define AGS_VST_KBIG_ENDIAN (1)
29
30#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__)
31#include <machine/endian.h>
32#elif defined(AGS_W32API)
33#else
34#include <endian.h>
35#endif
36
37#if __BYTE_ORDER == __LITTLE_ENDIAN
38#define AGS_VST_BYTEORDER AGS_VST_KLITTLE_ENDIAN
39#else
40#define AGS_VST_BYTEORDER AGS_VST_KBIG_ENDIAN
41#endif
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
47
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif /*__AGS_VST_FPLATFORM_H__*/