PipSqueak.h 869 B

123456789101112131415161718192021222324252627282930313233
  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-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef LLVM_PIPSQUEAK_H
  9. #define LLVM_PIPSQUEAK_H
  10. #if defined(_WIN32) && !defined(__GNUC__)
  11. // Disable warnings from inclusion of xlocale & exception
  12. #pragma warning(push)
  13. #pragma warning(disable: 4530)
  14. #pragma warning(disable: 4577)
  15. #include <string>
  16. #include <vector>
  17. #pragma warning(pop)
  18. #else
  19. #include <string>
  20. #include <vector>
  21. #endif
  22. #ifdef _WIN32
  23. #define PIPSQUEAK_EXPORT __declspec(dllexport)
  24. #else
  25. #define PIPSQUEAK_EXPORT
  26. #endif
  27. extern "C" PIPSQUEAK_EXPORT const char *TestA();
  28. #endif