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 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 26 #ifdef _WIN32 27 #define PIPSQUEAK_EXPORT __declspec(dllexport) 28 #else 29 #define PIPSQUEAK_EXPORT 30 #endif 31 32 extern "C" PIPSQUEAK_EXPORT const char *TestA(); 33 34 #endif 35