mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-14 10:08:32 +05:00
38 lines
1.0 KiB
C++
38 lines
1.0 KiB
C++
#ifndef NETGEN_CORE_NGCORE_API_HPP
|
|
#define NETGEN_CORE_NGCORE_API_HPP
|
|
|
|
#ifdef WIN32
|
|
#define NGCORE_API_EXPORT __declspec(dllexport)
|
|
#define NGCORE_API_IMPORT __declspec(dllimport)
|
|
#else
|
|
#define NGCORE_API_EXPORT __attribute__((visibility("default")))
|
|
#define NGCORE_API_IMPORT __attribute__((visibility("default")))
|
|
#endif
|
|
|
|
#ifdef NGCORE_EXPORTS
|
|
#define NGCORE_API NGCORE_API_EXPORT
|
|
#else
|
|
#define NGCORE_API NGCORE_API_IMPORT
|
|
#endif
|
|
|
|
#ifdef __INTEL_COMPILER
|
|
#ifdef WIN32
|
|
#define NETGEN_INLINE __forceinline inline
|
|
#define NETGEN_LAMBDA_INLINE
|
|
#else
|
|
#define NETGEN_INLINE __forceinline inline
|
|
#define NETGEN_LAMBDA_INLINE __attribute__ ((__always_inline__))
|
|
#endif
|
|
#else
|
|
#ifdef __GNUC__
|
|
#define NETGEN_INLINE __attribute__ ((__always_inline__)) inline
|
|
#define NETGEN_LAMBDA_INLINE __attribute__ ((__always_inline__))
|
|
#define NETGEN_VLA
|
|
#else
|
|
#define NETGEN_INLINE inline
|
|
#define NETGEN_LAMBDA_INLINE
|
|
#endif
|
|
#endif
|
|
|
|
#endif // NETGEN_CORE_NGCORE_API_HPP
|