34 lines · c
1//===- llvm/unittest/Support/DynamicLibrary/PipSqueak.h -------------------===//2//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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_PIPSQUEAK_H10#define LLVM_PIPSQUEAK_H11 12#if defined(_WIN32) && !defined(__GNUC__)13// Disable warnings from inclusion of xlocale & exception14#pragma warning(push)15#pragma warning(disable: 4530)16#pragma warning(disable: 4577)17#include <string>18#pragma warning(pop)19#else20#include <string>21#endif22 23#if defined(_WIN32) || defined(__CYGWIN__)24#define PIPSQUEAK_EXPORT __declspec(dllexport)25#elif defined(__MVS__)26#define PIPSQUEAK_EXPORT __attribute__((__visibility__("default")))27#else28#define PIPSQUEAK_EXPORT29#endif30 31extern "C" PIPSQUEAK_EXPORT const char *TestA();32 33#endif34