Move EXPORT_SYMBOLS into Macros.h
This commit is contained in:
parent
5e008cf684
commit
17c4f87d4b
3 changed files with 12 additions and 20 deletions
11
src/sfizz.h
11
src/sfizz.h
|
|
@ -12,20 +12,11 @@
|
|||
#pragma once
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include "sfizz/Macros.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if defined SFIZZ_EXPORT_SYMBOLS
|
||||
#if defined _WIN32
|
||||
#define SFIZZ_EXPORTED_API __declspec(dllexport)
|
||||
#else
|
||||
#define SFIZZ_EXPORTED_API __attribute__ ((visibility ("default")))
|
||||
#endif
|
||||
#else
|
||||
#define SFIZZ_EXPORTED_API
|
||||
#endif
|
||||
|
||||
typedef struct sfizz_synth_t sfizz_synth_t;
|
||||
typedef enum {
|
||||
SFIZZ_OVERSAMPLING_X1 = 1,
|
||||
|
|
|
|||
|
|
@ -7,16 +7,7 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
|
||||
#if defined SFIZZ_EXPORT_SYMBOLS
|
||||
#if defined _WIN32
|
||||
#define SFIZZ_EXPORTED_API __declspec(dllexport)
|
||||
#else
|
||||
#define SFIZZ_EXPORTED_API __attribute__ ((visibility ("default")))
|
||||
#endif
|
||||
#else
|
||||
#define SFIZZ_EXPORTED_API
|
||||
#endif
|
||||
#include "sfizz/Macros.h"
|
||||
|
||||
namespace sfz
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,3 +7,13 @@
|
|||
#pragma once
|
||||
|
||||
#define UNUSED(x) (void)(x)
|
||||
|
||||
#if defined SFIZZ_EXPORT_SYMBOLS
|
||||
#if defined _WIN32
|
||||
#define SFIZZ_EXPORTED_API __declspec(dllexport)
|
||||
#else
|
||||
#define SFIZZ_EXPORTED_API __attribute__ ((visibility ("default")))
|
||||
#endif
|
||||
#else
|
||||
#define SFIZZ_EXPORTED_API
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue