mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 03:45:51 +00:00
40 lines
662 B
C
40 lines
662 B
C
/*++
|
|
Copyright (c) 2015 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
z3native_stubs.h
|
|
|
|
Abstract:
|
|
|
|
DLL/SO/DYLIB export macros.
|
|
|
|
Author:
|
|
|
|
Christoph (cwinter) 2015-12-12
|
|
|
|
Notes:
|
|
|
|
--*/
|
|
|
|
#ifndef Z3NATIVE_STUBS_H_
|
|
#define Z3NATIVE_STUBS_H_
|
|
|
|
#if defined _WIN32 || defined __CYGWIN__
|
|
#ifdef __GNUC__
|
|
#define DLL_PUBLIC __attribute__ ((dllexport))
|
|
#else
|
|
#define DLL_PUBLIC __declspec(dllexport)
|
|
#endif
|
|
#define DLL_LOCAL
|
|
#else
|
|
#if __GNUC__ >= 4
|
|
#define DLL_PUBLIC __attribute__ ((visibility ("default")))
|
|
#define DLL_LOCAL __attribute__ ((visibility ("hidden")))
|
|
#else
|
|
#define DLL_PUBLIC
|
|
#define DLL_LOCAL
|
|
#endif
|
|
#endif
|
|
|
|
#endif
|