Skip to content

Commit

Permalink
use simplified API header
Browse files Browse the repository at this point in the history
  • Loading branch information
TShapinsky committed Oct 11, 2024
1 parent 3cd641b commit 662ddbb
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions src/alfalfa/AlfalfaAPI.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,14 @@
#ifndef ALFALFA_ALFALFAAPI_HPP
#define ALFALFA_ALFALFAAPI_HPP

#if (_WIN32 || _MSC_VER) && !OPENSTUDIO_DIRECT_INCLUDE

# ifdef SHARED_OS_LIBS

# if defined(openstudio_alfalfa_EXPORTS) || defined(openstudio_EXPORTS)
# define ALFALFA_API __declspec(dllexport)
# define ALFALFA_TEMPLATE_EXT
# else
# define ALFALFA_API __declspec(dllimport)
# define ALFALFA_TEMPLATE_EXT extern
# endif

#if (_WIN32 || _MSC_VER) && SHARED_OS_LIBS
# if defined(openstudio_alfalfa_EXPORTS) || defined(openstudio_EXPORTS)
# define ALFALFA_API __declspec(dllexport)
# else

# define ALFALFA_API
# if defined(openstudio_alfalfa_EXPORTS) || defined(openstudio_EXPORTS)
# define ALFALFA_TEMPLATE_EXT
# else
# define ALFALFA_TEMPLATE_EXT extern
# endif

# define ALFALFA_API __declspec(dllimport)
# endif

#else

# define ALFALFA_API
# define ALFALFA_TEMPLATE_EXT

#endif

#endif

0 comments on commit 662ddbb

Please sign in to comment.