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
|
||||
#include <stddef.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
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -7,7 +7,16 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
#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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue