|
| 1 | +// Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | +// Licensed under the MIT License. |
| 3 | + |
| 4 | +#pragma once |
| 5 | + |
| 6 | +#ifndef DLLEXPORTS_H |
| 7 | +#define DLLEXPORTS_H |
| 8 | + |
| 9 | +// clang-format off |
| 10 | +#ifdef GRAPHQL_DLLEXPORTS |
| 11 | + #ifdef IMPL_GRAPHQLCLIENT_DLL |
| 12 | + #define GRAPHQLCLIENT_EXPORT __declspec(dllexport) |
| 13 | + #else // !IMPL_GRAPHQLCLIENT_DLL |
| 14 | + #define GRAPHQLCLIENT_EXPORT __declspec(dllimport) |
| 15 | + #endif // !IMPL_GRAPHQLCLIENT_DLL |
| 16 | + |
| 17 | + #ifdef IMPL_GRAPHQLPEG_DLL |
| 18 | + #define GRAPHQLPEG_EXPORT __declspec(dllexport) |
| 19 | + #else // !IMPL_GRAPHQLPEG_DLL |
| 20 | + #define GRAPHQLPEG_EXPORT __declspec(dllimport) |
| 21 | + #endif // !IMPL_GRAPHQLPEG_DLL |
| 22 | + |
| 23 | + #ifdef IMPL_GRAPHQLRESPONSE_DLL |
| 24 | + #define GRAPHQLRESPONSE_EXPORT __declspec(dllexport) |
| 25 | + #else // !IMPL_GRAPHQLRESPONSE_DLL |
| 26 | + #define GRAPHQLRESPONSE_EXPORT __declspec(dllimport) |
| 27 | + #endif // !IMPL_GRAPHQLRESPONSE_DLL |
| 28 | + |
| 29 | + #ifdef IMPL_GRAPHQLSERVICE_DLL |
| 30 | + #define GRAPHQLSERVICE_EXPORT __declspec(dllexport) |
| 31 | + #else // !IMPL_GRAPHQLSERVICE_DLL |
| 32 | + #define GRAPHQLSERVICE_EXPORT __declspec(dllimport) |
| 33 | + #endif // !IMPL_GRAPHQLSERVICE_DLL |
| 34 | + |
| 35 | + #ifdef IMPL_JSONRESPONSE_DLL |
| 36 | + #define JSONRESPONSE_EXPORT __declspec(dllexport) |
| 37 | + #else // !IMPL_JSONRESPONSE_DLL |
| 38 | + #define JSONRESPONSE_EXPORT __declspec(dllimport) |
| 39 | + #endif // !IMPL_JSONRESPONSE_DLL |
| 40 | +#else // !GRAPHQL_DLLEXPORTS |
| 41 | + #define GRAPHQLCLIENT_EXPORT |
| 42 | + #define GRAPHQLPEG_EXPORT |
| 43 | + #define GRAPHQLRESPONSE_EXPORT |
| 44 | + #define GRAPHQLSERVICE_EXPORT |
| 45 | + #define JSONRESPONSE_EXPORT |
| 46 | +#endif // !GRAPHQL_DLLEXPORTS |
| 47 | +// clang-format on |
| 48 | + |
| 49 | +#endif // DLLEXPORTS_H |
0 commit comments