Frederich Munch | c1db8cf | 2017-04-27 16:55:24 +0000 | [diff] [blame] | 1 | //===- llvm/unittest/Support/DynamicLibrary/PipSqueak.h -------------------===// |
| 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Frederich Munch | c1db8cf | 2017-04-27 16:55:24 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #ifndef LLVM_PIPSQUEAK_H |
| 10 | #define LLVM_PIPSQUEAK_H |
| 11 | |
Frederich Munch | ad12580 | 2017-06-05 16:26:58 +0000 | [diff] [blame] | 12 | #if defined(_WIN32) && !defined(__GNUC__) |
| 13 | // Disable warnings from inclusion of xlocale & exception |
| 14 | #pragma warning(push) |
| 15 | #pragma warning(disable: 4530) |
| 16 | #pragma warning(disable: 4577) |
| 17 | #include <string> |
| 18 | #include <vector> |
| 19 | #pragma warning(pop) |
| 20 | #else |
| 21 | #include <string> |
| 22 | #include <vector> |
| 23 | #endif |
| 24 | |
Frederich Munch | c1db8cf | 2017-04-27 16:55:24 +0000 | [diff] [blame] | 25 | #ifdef _WIN32 |
| 26 | #define PIPSQUEAK_EXPORT __declspec(dllexport) |
| 27 | #else |
| 28 | #define PIPSQUEAK_EXPORT |
| 29 | #endif |
| 30 | |
Roger Ferrer Ibanez | 2cd536c | 2017-06-12 07:22:15 +0000 | [diff] [blame] | 31 | extern "C" PIPSQUEAK_EXPORT const char *TestA(); |
| 32 | |
Frederich Munch | c1db8cf | 2017-04-27 16:55:24 +0000 | [diff] [blame] | 33 | #endif |