Frederich Munch | c1db8cf | 2017-04-27 16:55:24 +0000 | [diff] [blame] | 1 | //===- llvm/unittest/Support/DynamicLibrary/PipSqueak.h -------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef LLVM_PIPSQUEAK_H |
| 11 | #define LLVM_PIPSQUEAK_H |
| 12 | |
Frederich Munch | ad12580 | 2017-06-05 16:26:58 +0000 | [diff] [blame] | 13 | #if defined(_WIN32) && !defined(__GNUC__) |
| 14 | // Disable warnings from inclusion of xlocale & exception |
| 15 | #pragma warning(push) |
| 16 | #pragma warning(disable: 4530) |
| 17 | #pragma warning(disable: 4577) |
| 18 | #include <string> |
| 19 | #include <vector> |
| 20 | #pragma warning(pop) |
| 21 | #else |
| 22 | #include <string> |
| 23 | #include <vector> |
| 24 | #endif |
| 25 | |
Frederich Munch | c1db8cf | 2017-04-27 16:55:24 +0000 | [diff] [blame] | 26 | #ifdef _WIN32 |
| 27 | #define PIPSQUEAK_EXPORT __declspec(dllexport) |
| 28 | #else |
| 29 | #define PIPSQUEAK_EXPORT |
| 30 | #endif |
| 31 | |
Roger Ferrer Ibanez | 2cd536c | 2017-06-12 07:22:15 +0000 | [diff] [blame] | 32 | extern "C" PIPSQUEAK_EXPORT const char *TestA(); |
| 33 | |
Frederich Munch | c1db8cf | 2017-04-27 16:55:24 +0000 | [diff] [blame] | 34 | #endif |