mirror of
https://github.com/Ed94/metadesk.git
synced 2026-06-13 07:52:22 -07:00
38 lines
689 B
C
38 lines
689 B
C
#ifdef MD_INTELLISENSE_DIRECTIVES
|
|
# pragma once
|
|
# include "context_cracking.h"
|
|
#endif
|
|
|
|
#ifndef MD_API
|
|
#if MD_COMPILER_MSVC
|
|
# ifdef MD_DYN_LINK
|
|
# ifdef MD_DYN_EXPORT
|
|
# define MD_API __declspec(dllexport)
|
|
# else
|
|
# define MD_API __declspec(dllimport)
|
|
# endif
|
|
# else
|
|
# define MD_API // Empty for static builds
|
|
# endif
|
|
#else
|
|
# ifdef MD_DYN_LINK
|
|
# define MD_API __attribute__((visibility("default")))
|
|
# else
|
|
# define MD_API // Empty for static builds
|
|
# endif
|
|
#endif
|
|
#endif // GEN_API
|
|
|
|
#ifndef global // Global variables
|
|
# ifdef MD_DYN_EXPORT
|
|
# define global
|
|
# else
|
|
# define global static
|
|
# endif
|
|
#endif
|
|
|
|
// Internal Linkage
|
|
#ifndef internal
|
|
#define internal static
|
|
#endif
|