52 lines
1.1 KiB
C
52 lines
1.1 KiB
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#if defined(_QT_COMPILE)
|
||
|
|
#include <QtCore/qglobal.h>
|
||
|
|
#if defined(IMGACC_EXPORTS)
|
||
|
|
#define IMGACC_API Q_DECL_EXPORT
|
||
|
|
#else
|
||
|
|
#define IMGACC_API Q_DECL_IMPORT
|
||
|
|
|
||
|
|
#ifdef _DEBUG
|
||
|
|
#pragma comment(lib, "ImgAccd.lib")
|
||
|
|
#else
|
||
|
|
#pragma comment(lib, "ImgAcc.lib")
|
||
|
|
#endif
|
||
|
|
#endif
|
||
|
|
#elif defined(_MSC_VER)
|
||
|
|
// 动态库
|
||
|
|
#if defined(IMGACC_EXPORTS)
|
||
|
|
#if defined(VZSTATICLIB)
|
||
|
|
#define IMGACC_API
|
||
|
|
#else
|
||
|
|
#ifdef __cplusplus
|
||
|
|
#define IMGACC_API extern "C" __declspec(dllexport)
|
||
|
|
#else
|
||
|
|
#define IMGACC_API __declspec(dllexport)
|
||
|
|
#endif
|
||
|
|
#endif
|
||
|
|
#else
|
||
|
|
#if defined(_STATICLIB)
|
||
|
|
#define IMGACC_API
|
||
|
|
#else
|
||
|
|
#ifdef __cplusplus
|
||
|
|
#define IMGACC_API extern "C" __declspec(dllimport)
|
||
|
|
#else
|
||
|
|
#define IMGACC_API __declspec(dllimport)
|
||
|
|
#endif
|
||
|
|
#endif
|
||
|
|
#ifdef _DEBUG
|
||
|
|
#pragma comment(lib, "ImgAccd.lib")
|
||
|
|
#else
|
||
|
|
#pragma comment(lib, "ImgAcc.lib")
|
||
|
|
#endif
|
||
|
|
#endif
|
||
|
|
#else
|
||
|
|
#ifndef IMGACC_API
|
||
|
|
//#ifdef __cplusplus
|
||
|
|
// #define IMGACC_API extern "C" __attribute__((visibility("default")))
|
||
|
|
//#else
|
||
|
|
#define IMGACC_API __attribute__((visibility("default")))
|
||
|
|
//#endif
|
||
|
|
#endif
|
||
|
|
#endif
|