-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fix symbol export visibility #531
Merged
Merged
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
6def468
fix: Fix symbol export visibility
WillAyd 580587f
Update Meson configuration
WillAyd 02813af
Hidden visibility for C modules
WillAyd abfec33
Merge remote-tracking branch 'upstream/main' into symbol-visibility
WillAyd 529b460
cleanups
WillAyd b5b2804
Updated Python regex in bootstrap
WillAyd 3d95064
Error for libtype='both'
WillAyd dcb29ab
Revert "Error for libtype='both'"
WillAyd 6f63161
Revert "Updated Python regex in bootstrap"
WillAyd 9e0175f
Revert "cleanups"
WillAyd ebfc9fa
Revert "Hidden visibility for C modules"
WillAyd c3ea966
Merge remote-tracking branch 'upstream/main' into symbol-visibility
WillAyd 1ddb081
Updates after simplification
WillAyd d5f6634
Refactor macros and Meson configuration
WillAyd 71eca69
Use elif in macro
WillAyd 25baf3d
Macro fix
WillAyd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,11 +20,19 @@ | |
|
||
#include <stdint.h> | ||
|
||
#if defined(_MSC_VER) | ||
#define DLL_EXPORT __declspec(dllexport) | ||
#if (defined _WIN32 || defined __CYGWIN__) && defined(NANOARROW_BUILD_DLL) | ||
#if defined(NANOARROW_EXPORT_DLL) | ||
#define NANOARROW_DLL __declspec(dllexport) | ||
#else | ||
#define DLL_EXPORT | ||
#endif | ||
#define NANOARROW_DLL __declspec(dllimport) | ||
#endif // (defined _WIN32 || defined __CYGWIN__) && defined(NANOARROW_BUILD_DLL) | ||
#else | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe here: |
||
#if __GNUC__ >= 4 | ||
#define NANOARROW_DLL __attribute__((visibility("default"))) | ||
#else | ||
#define NANOARROW_DLL | ||
#endif // __GNUC__ >= 4 | ||
#endif // defined _WIN32 || defined __CYGWIN__ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
|
@@ -76,19 +84,19 @@ struct ArrowArray { | |
#endif // ARROW_C_DATA_INTERFACE | ||
#endif // ARROW_FLAG_DICTIONARY_ORDERED | ||
|
||
DLL_EXPORT const char* nanoarrow_CDataIntegration_ExportSchemaFromJson( | ||
NANOARROW_DLL const char* nanoarrow_CDataIntegration_ExportSchemaFromJson( | ||
const char* json_path, struct ArrowSchema* out); | ||
|
||
DLL_EXPORT const char* nanoarrow_CDataIntegration_ImportSchemaAndCompareToJson( | ||
NANOARROW_DLL const char* nanoarrow_CDataIntegration_ImportSchemaAndCompareToJson( | ||
const char* json_path, struct ArrowSchema* schema); | ||
|
||
DLL_EXPORT const char* nanoarrow_CDataIntegration_ExportBatchFromJson( | ||
NANOARROW_DLL const char* nanoarrow_CDataIntegration_ExportBatchFromJson( | ||
const char* json_path, int num_batch, struct ArrowArray* out); | ||
|
||
DLL_EXPORT const char* nanoarrow_CDataIntegration_ImportBatchAndCompareToJson( | ||
NANOARROW_DLL const char* nanoarrow_CDataIntegration_ImportBatchAndCompareToJson( | ||
const char* json_path, int num_batch, struct ArrowArray* batch); | ||
|
||
DLL_EXPORT int64_t nanoarrow_BytesAllocated(void); | ||
NANOARROW_DLL int64_t nanoarrow_BytesAllocated(void); | ||
|
||
#ifdef __cplusplus | ||
} | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated but figure minor enough to toss in