1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00

In test-extensions test, must export library fuctions when built as DLL

The test-extensions standalone test creates a library to be loaded with
load-extension.  When such libraries are DLLs, the public functions
must be marked with the dllexport function attribute.

* test-suite/standalone/test-extensions-lib.c (API): new define
  Mark public functions with define.
This commit is contained in:
Michael Gran 2023-06-02 13:43:57 -07:00
parent dc3a3a84f9
commit 0e9ccaf47c

View file

@ -25,8 +25,14 @@
SCM init2_count;
void libtest_extensions_init2 (void);
void libtest_extensions_init (void);
#if _WIN32 || __CYGWIN__
#define API __declspec(dllexport)
#else
#define API
#endif
API void libtest_extensions_init2 (void);
API void libtest_extensions_init (void);
void
libtest_extensions_init2 (void)