d2b2a921f1
On Windows we seem to have to load the TestLibrary[AB] test libraries from in same folder the test executable runs. Also removed the empty RemoveDllDirectory, SetDefaultDllDirectories, AddDllDirectory tests and the redundant FreeLibrary test. TestLibrary now works and succeeds on Win32. sadasd
15 lines
240 B
C
15 lines
240 B
C
#include <winpr/spec.h>
|
|
|
|
DECLSPEC_EXPORT int FunctionA(int a, int b);
|
|
DECLSPEC_EXPORT int FunctionB(int a, int b);
|
|
|
|
int FunctionA(int a, int b)
|
|
{
|
|
return (a + b); /* add */
|
|
}
|
|
|
|
int FunctionB(int a, int b)
|
|
{
|
|
return (a - b); /* subtract */
|
|
}
|