Permalink
Browse files

Support for MSVC in exports header file

  • Loading branch information...
j-rivero committed Nov 10, 2017
1 parent 9759059 commit d45672ea2f4b0aad6d900bc12a5ae616e17c58c2
Showing with 14 additions and 29 deletions.
  1. +14 −29 src/ccd/ccd_export.h
View
@@ -1,41 +1,26 @@
#ifndef CCD_EXPORT_H
#define CCD_EXPORT_H
#ifdef CCD_STATIC_DEFINE
# define CCD_EXPORT
# define CCD_NO_EXPORT
#else
# ifndef CCD_EXPORT
# ifdef _MSC_VER
# ifdef ccd_EXPORTS
/* We are building this library */
# define CCD_EXPORT __attribute__((visibility("default")))
# else
/* We are using this library */
# define CCD_EXPORT __attribute__((visibility("default")))
# define _ccd_export __declspec(dllexport)
# else /* ccd_EXPORTS */
# define _ccd_export __declspec(dllimport)
# endif /* ccd_EXPORTS */
# else
# ifndef CCD_EXPORT
# ifdef ccd_EXPORTS
/* We are building this library */
# define CCD_EXPORT __attribute__((visibility("default")))
# else
/* We are using this library */
# define CCD_EXPORT __attribute__((visibility("default")))
# endif
# endif
# endif
# ifndef CCD_NO_EXPORT
# define CCD_NO_EXPORT __attribute__((visibility("hidden")))
# endif
#endif
#ifndef CCD_DEPRECATED
# define CCD_DEPRECATED __attribute__ ((__deprecated__))
#endif
#ifndef CCD_DEPRECATED_EXPORT
# define CCD_DEPRECATED_EXPORT CCD_EXPORT CCD_DEPRECATED
#endif
#ifndef CCD_DEPRECATED_NO_EXPORT
# define CCD_DEPRECATED_NO_EXPORT CCD_NO_EXPORT CCD_DEPRECATED
#endif
#define DEFINE_NO_DEPRECATED 0
#if DEFINE_NO_DEPRECATED
# define CCD_NO_DEPRECATED
#endif
#endif

0 comments on commit d45672e

Please sign in to comment.