put back the export definitions in the headers
This commit is contained in:
parent
20dea5ec94
commit
7513d5a4bd
2 changed files with 21 additions and 2 deletions
12
src/sfizz.h
12
src/sfizz.h
|
|
@ -12,7 +12,17 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "sfizz/Macros.h"
|
|
||||||
|
#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
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,16 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "sfizz/Macros.h"
|
|
||||||
|
#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
|
||||||
|
|
||||||
namespace sfz
|
namespace sfz
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue