Fix api export define error

This commit is contained in:
dijunkun
2023-11-29 22:02:45 -08:00
parent 3a1be00ca5
commit 079ceddae7
4 changed files with 7 additions and 5 deletions

View File

@@ -1,10 +1,12 @@
#ifndef _X_H_
#define _X_H_
#ifdef DLL_EXPORTS
#if defined(_MSC_VER)
#define DLLAPI __declspec(dllexport)
#elif defined(__GNUC__)
#define DLLAPI __attribute__((visibility("default")))
#else
#define DLLAPI __declspec(dllimport)
#define DLLAPI
#endif
#include <stdint.h>