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

Export symbols for windows #44

Open
duarm opened this issue Jan 26, 2024 · 0 comments
Open

Export symbols for windows #44

duarm opened this issue Jan 26, 2024 · 0 comments
Labels
feature request Feature requests

Comments

@duarm
Copy link

duarm commented Jan 26, 2024

Feature Request Template

What is the nature of this request?

  • New functionalities

Is your feature request related to a problem? Please describe.

Compiling on windows/mingw requires each symbol to be exported, with something like __declspec(dllexport), libraries usually have something like this, example from PHYSFS

#if defined(PHYSFS_DECL)
/* do nothing. */
#elif defined(PHYSFS_STATIC)
#define PHYSFS_DECL   /**/
#elif defined(_WIN32) || defined(__OS2__)
#define PHYSFS_DECL __declspec(dllexport)
#elif defined(__SUNPRO_C)
#define PHYSFS_DECL __global
#elif ((__GNUC__ >= 3) && (!defined(__EMX__)) && (!defined(sun)))
#define PHYSFS_DECL __attribute__((visibility("default")))
#else
#define PHYSFS_DECL
#endif

or at least expose a LIB_DECL, which can be defined by the consumer

Describe the solution you'd like

prefix every function declaration on header.h with CMC_DECL, and have something like the above example on core.h

@duarm duarm added the feature request Feature requests label Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature requests
Projects
None yet
Development

No branches or pull requests

1 participant