[ccfits] Fix x64-linux-dynamic build (#25826)

Co-authored-by: Osyotr <8740768+Osyotr@users.noreply.github.com>
This commit is contained in:
Osyotr 2022-07-18 23:02:35 +03:00 committed by GitHub
parent bb920d6a58
commit d2dbf99615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 31 deletions

View File

@ -311,45 +311,26 @@ new file mode 100644
index 0000000..a2540a6 100644
--- /dev/null
+++ b/ccfits_export.h
@@ -0,0 +1,41 @@
@@ -0,0 +1,22 @@
+#ifndef CCFITS_EXPORT_H
+#define CCFITS_EXPORT_H
+
+#ifdef CCFITS_STATIC_DEFINE
+# define CCFITS_EXPORT
+# define CCFITS_NO_EXPORT
+#else
+# ifndef CCFITS_EXPORT
+# ifdef CCfits_EXPORTS
+ /* We are building this library */
+# define CCFITS_EXPORT __declspec(dllexport)
+# ifdef _MSC_VER
+# ifdef CCfits_EXPORTS
+ /* We are building this library */
+# define CCFITS_EXPORT __declspec(dllexport)
+# else
+ /* We are using this library */
+# define CCFITS_EXPORT __declspec(dllimport)
+# endif
+# else
+ /* We are using this library */
+# define CCFITS_EXPORT __declspec(dllimport)
+# define CCFITS_EXPORT __attribute__((visibility("default")))
+# endif
+# endif
+
+# ifndef CCFITS_NO_EXPORT
+# define CCFITS_NO_EXPORT
+# endif
+#endif
+
+#ifndef CCFITS_DEPRECATED
+# define CCFITS_DEPRECATED __declspec(deprecated)
+#endif
+
+#ifndef CCFITS_DEPRECATED_EXPORT
+# define CCFITS_DEPRECATED_EXPORT CCFITS_EXPORT CCFITS_DEPRECATED
+#endif
+
+#ifndef CCFITS_DEPRECATED_NO_EXPORT
+# define CCFITS_DEPRECATED_NO_EXPORT CCFITS_NO_EXPORT CCFITS_DEPRECATED
+#endif
+
+#if 0 /* DEFINE_NO_DEPRECATED */
+# ifndef CCFITS_NO_DEPRECATED
+# define CCFITS_NO_DEPRECATED
+# endif
+#endif
+
+#endif

View File

@ -1,9 +1,10 @@
{
"name": "ccfits",
"version": "2.5",
"port-version": 8,
"port-version": 9,
"description": "CCfits is an object oriented interface to the cfitsio library. It is designed to make the capabilities of cfitsio available to programmers working in C++.",
"homepage": "https://heasarc.gsfc.nasa.gov/fitsio/CCfits/",
"license": "NASA-1.3",
"dependencies": [
"cfitsio",
{

View File

@ -1302,7 +1302,7 @@
},
"ccfits": {
"baseline": "2.5",
"port-version": 8
"port-version": 9
},
"cctag": {
"baseline": "1.0.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "659ca5a77df9383a31166079a5f08ce70400d4ab",
"version": "2.5",
"port-version": 9
},
{
"git-tree": "ebcb81196a7e63b3b7c4b78f67ebc4e5f20c97c3",
"version": "2.5",