obs-studio/build_dependencies/aja/include/ajalibraries/ajantv2/includes/ajaexport.h
Ward Nakchbandi b48576284b first commit
2023-03-04 20:33:16 +03:00

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