- fixed compilation on macOS and Linux

This commit is contained in:
alexey.lysiuk 2020-01-04 15:09:09 +02:00 committed by Christoph Oelckers
parent 26c3c3a1bd
commit eb7d20d0d2
2 changed files with 7 additions and 0 deletions

View file

@ -2,6 +2,7 @@
#include <stdlib.h>
#include <stdint.h>
#include <stdarg.h>
// These constants must match the corresponding values of the Windows headers
// to avoid readjustment in the native Windows device's playback functions

View file

@ -1,8 +1,14 @@
#pragma once
#define ZMUSIC_INTERNAL
#ifdef _MSC_VER
#define DLL_EXPORT __declspec(dllexport)
#define DLL_IMPORT __declspec(dllexport) // without this the compiler complains.
#else // !_MSC_VER
#define DLL_EXPORT
#define DLL_IMPORT
#endif // _MSC_VER
typedef class MIDISource *ZMusic_MidiSource;
typedef class MusInfo *ZMusic_MusicStream;