Files
metadesk/code/base/linkage.h
T
2025-02-01 21:36:44 -05:00

39 lines
718 B
C

#ifdef MD_INTELLISENSE_DIRECTIVES
# pragma once
# include "cracking_arch.h"
# include "cracking_compiler.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