azure-identity
dll_import_export.hpp
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // SPDX-License-Identifier: MIT
3 
9 // For explanation, see the comment in azure/core/dll_import_export.hpp
10 
11 #pragma once
12 
19 #if defined(AZ_IDENTITY_DLL) || (0 /*@AZ_IDENTITY_DLL_INSTALLED_AS_PACKAGE@*/)
20 #define AZ_IDENTITY_BUILT_AS_DLL 1
21 #else
22 #define AZ_IDENTITY_BUILT_AS_DLL 0
23 #endif
24 
25 #if AZ_IDENTITY_BUILT_AS_DLL
26 #if defined(_MSC_VER)
27 #if defined(AZ_IDENTITY_BEING_BUILT)
28 #define AZ_IDENTITY_DLLEXPORT __declspec(dllexport)
29 #else // !defined(AZ_IDENTITY_BEING_BUILT)
30 #define AZ_IDENTITY_DLLEXPORT __declspec(dllimport)
31 #endif // AZ_IDENTITY_BEING_BUILT
32 #else // !defined(_MSC_VER)
33 #define AZ_IDENTITY_DLLEXPORT
34 #endif // _MSC_VER
35 #else // !AZ_IDENTITY_BUILT_AS_DLL
36 #define AZ_IDENTITY_DLLEXPORT
37 #endif // AZ_IDENTITY_BUILT_AS_DLL
38 
39 #undef AZ_IDENTITY_BUILT_AS_DLL
40 
45 namespace Azure {
46 
51 namespace Identity {
52 }
53 } // namespace Azure
Azure SDK abstractions.
Definition: azure_cli_credential.hpp:22