Skip to content

Commit

Permalink
update GLISY_EXPORT
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Mar 17, 2016
1 parent cf0a1cb commit b0a38c3
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion include/glisy/glisy.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,24 @@
extern "C" {
#endif

#define GLISY_EXPORT __attribute__((visibility("default")))
#ifdef _WIN32
// Windows - set up dll import/export decorators.
# if defined(BUILDING_GLISY_SHARED)
// Building shared library.
# define GLISY_EXPORT __declspec(dllexport)
# elif defined(USING_GLISY_SHARED)
// Using shared library.
# define GLISY_EXPORT __declspec(dllimport)
# else
// Building static library
# define GLISY_EXPORT
# endif
#elif __GNUC__ >= 4
# define GLISY_EXPORT __attribute__((visibility("default")))
#else
// nothing
# define GLISY_EXPORT
#endif

/**
* Glisy API.
Expand Down

0 comments on commit b0a38c3

Please sign in to comment.