Skip to content
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

[CBRD-21754] Add __declspec(dllexport) macro in porting.h for windows #3759

Merged
merged 1 commit into from
Aug 8, 2022

Conversation

hgryoo
Copy link
Member

@hgryoo hgryoo commented Aug 5, 2022

http://jira.cubrid.org/browse/CBRD-21754

Motivation
the legacy macro, EXPORT_VAR, IMPORT_VAR is not used in every place.
We have the .def files to specify exporting functions. But the lists are not managed well, and it is also a burden for developers.
Also, For C++ classes, when you want to export the functions in a class, every function should be explicitly specified in the .def file.

Implementation
As a first step of removing *.def file, I've added the MSVC keywords macro to export/import symbols to/from WIndows DLL's in porting.h.

Remarks
N/A

@hgryoo hgryoo requested review from mhoh3963 and beyondykk9 August 5, 2022 06:36
@hgryoo hgryoo self-assigned this Aug 5, 2022
@hgryoo hgryoo marked this pull request as ready for review August 5, 2022 06:40
@hgryoo hgryoo merged commit 7b97631 into CUBRID:develop Aug 8, 2022
hgryoo added a commit to hgryoo/cubrid that referenced this pull request Mar 16, 2023
…CUBRID#3759)

http://jira.cubrid.org/browse/CBRD-21754

Motivation
the legacy macro, EXPORT_VAR, IMPORT_VAR is not used in every place.
We have the .def files to specify exporting functions. But the lists are not managed well, and it is also a burden for developers.
Also, For C++ classes, when you want to export the functions in a class, every function should be explicitly specified in the .def file.

Implementation
As a first step of removing *.def file, I've added the MSVC keywords macro to export/import symbols to/from WIndows DLL's in porting.h.

Remarks
N/A
hgryoo added a commit to hgryoo/cubrid that referenced this pull request Mar 16, 2023
…CUBRID#3759)

http://jira.cubrid.org/browse/CBRD-21754

Motivation
the legacy macro, EXPORT_VAR, IMPORT_VAR is not used in every place.
We have the .def files to specify exporting functions. But the lists are not managed well, and it is also a burden for developers.
Also, For C++ classes, when you want to export the functions in a class, every function should be explicitly specified in the .def file.

Implementation
As a first step of removing *.def file, I've added the MSVC keywords macro to export/import symbols to/from WIndows DLL's in porting.h.

Remarks
N/A
hgryoo added a commit to hgryoo/cubrid that referenced this pull request Mar 16, 2023
…CUBRID#3759)

http://jira.cubrid.org/browse/CBRD-21754

Motivation
the legacy macro, EXPORT_VAR, IMPORT_VAR is not used in every place.
We have the .def files to specify exporting functions. But the lists are not managed well, and it is also a burden for developers.
Also, For C++ classes, when you want to export the functions in a class, every function should be explicitly specified in the .def file.

Implementation
As a first step of removing *.def file, I've added the MSVC keywords macro to export/import symbols to/from WIndows DLL's in porting.h.

Remarks
N/A
hgryoo added a commit that referenced this pull request Mar 17, 2023
…a SP is not working on Windows (#4182)

http://jira.cubrid.org/browse/CBRD-24434

#3759, #3754, and #4010 should be merged to support correctly returning cursor functionality on windows. The legacy libcas cause the problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants