azure-storage-blobs
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_STORAGE_BLOBS_DLL) || (0 /*@AZ_STORAGE_BLOBS_DLL_INSTALLED_AS_PACKAGE@*/)
20 #define AZ_STORAGE_BLOBS_BUILT_AS_DLL 1
21 #else
22 #define AZ_STORAGE_BLOBS_BUILT_AS_DLL 0
23 #endif
24 
25 #if AZ_STORAGE_BLOBS_BUILT_AS_DLL
26 #if defined(_MSC_VER)
27 #if defined(AZ_STORAGE_BLOBS_BEING_BUILT)
28 #define AZ_STORAGE_BLOBS_DLLEXPORT __declspec(dllexport)
29 #else // !defined(AZ_STORAGE_BLOBS_BEING_BUILT)
30 #define AZ_STORAGE_BLOBS_DLLEXPORT __declspec(dllimport)
31 #endif // AZ_STORAGE_BLOBS_BEING_BUILT
32 #else // !defined(_MSC_VER)
33 #define AZ_STORAGE_BLOBS_DLLEXPORT
34 #endif // _MSC_VER
35 #else // !AZ_STORAGE_BLOBS_BUILT_AS_DLL
36 #define AZ_STORAGE_BLOBS_DLLEXPORT
37 #endif // AZ_STORAGE_BLOBS_BUILT_AS_DLL
38 
39 #undef AZ_STORAGE_BLOBS_BUILT_AS_DLL