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

38 lines
997 B
C

/* SPDX-License-Identifier: MIT */
/**
@file export.h
@brief Declares system-dependent import/export macros and libraries.
@copyright (C) 2009-2021 AJA Video Systems, Inc. All rights reserved.
**/
#ifndef AJA_EXPORT_H
#define AJA_EXPORT_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 // AJA_EXPORT_H