36 lines
1.3 KiB
C
36 lines
1.3 KiB
C
|
/************************************************************************************//*!
|
||
|
\file SH_API.h
|
||
|
\author Tng Kah Wei, kahwei.tng, 390009620
|
||
|
\par email: kahwei.tng\@digipen.edu
|
||
|
\date Sep 13, 2022
|
||
|
\brief Contains dllexport and dllimport macros for the SHADE Engine.
|
||
|
|
||
|
Copyright (C) 2022 DigiPen Institute of Technology.
|
||
|
Reproduction or disclosure of this file or its contents without the prior written consent
|
||
|
of DigiPen Institute of Technology is prohibited.
|
||
|
*//*************************************************************************************/
|
||
|
#pragma once
|
||
|
|
||
|
// Select the correct export system based on the compiler
|
||
|
#if defined SH_LIB
|
||
|
# define SH_API
|
||
|
#else
|
||
|
# if defined _WIN32 || defined __CYGWIN__ || defined _MSC_VER
|
||
|
# define SH_EXPORT __declspec(dllexport)
|
||
|
# define SH_IMPORT __declspec(dllimport)
|
||
|
# elif defined __GNUC__ && __GNUC__ >= 4
|
||
|
# define SH_EXPORT __attribute__((visibility("default")))
|
||
|
# define SH_IMPORT __attribute__((visibility("default")))
|
||
|
# else /* Unsupported compiler */
|
||
|
# define SH_EXPORT
|
||
|
# define SH_IMPORT
|
||
|
# endif
|
||
|
// Define the correct
|
||
|
# ifndef SH_API
|
||
|
# if defined SH_API_EXPORT
|
||
|
# define SH_API SH_EXPORT
|
||
|
# else
|
||
|
# define SH_API SH_IMPORT
|
||
|
# endif
|
||
|
# endif
|
||
|
#endif
|