38 lines
976 B
C
38 lines
976 B
C
|
/* SPDX-License-Identifier: MIT */
|
||
|
/**
|
||
|
@file ajaexport.h
|
||
|
@brief Defines the import/export macros for producing DLLs or LIBs.
|
||
|
@copyright (C) 2008-2021 AJA Video Systems, Inc.
|
||
|
**/
|
||
|
|
||
|
#ifndef AJAEXPORT_H
|
||
|
#define AJAEXPORT_H
|
||
|
|
||
|
#ifdef MSWindows
|
||
|
#ifndef AJASTATIC
|
||
|
#if defined(AJADLL) || defined(AJA_WINDLL)
|
||
|
#pragma warning (disable : 4251)
|
||
|
#if defined(AJADLL_BUILD) || defined(AJA_DLL_BUILD)
|
||
|
#define AJAExport __declspec(dllexport) // ajantv2 way
|
||
|
#define AJA_EXPORT __declspec(dllexport) // ajabase way
|
||
|
#else
|
||
|
#define AJAExport __declspec(dllimport) // ajantv2 way
|
||
|
#define AJA_EXPORT __declspec(dllimport) // ajabase way
|
||
|
#endif
|
||
|
#else
|
||
|
#define AJAExport // ajantv2 way
|
||
|
#define AJA_EXPORT // ajabase way
|
||
|
#ifndef AJA_NO_AUTOIMPORT
|
||
|
#endif
|
||
|
#endif
|
||
|
#else
|
||
|
#define AJAExport // ajantv2 way
|
||
|
#define AJA_EXPORT // ajabase way
|
||
|
#endif
|
||
|
#else
|
||
|
#define AJAExport // ajantv2 way
|
||
|
#define AJA_EXPORT // ajabase way
|
||
|
#endif
|
||
|
|
||
|
#endif // AJAEXPORT_H
|