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:
parent
dc3a3a84f9
commit
0e9ccaf47c
1 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue