mirror of
git://repo.or.cz/tinycc.git
synced 2026-11-05 05:36:35 +08:00
Parse quoted LIBRARY names as a single token and add the default .dll extension when needed. Allocate the stored name dynamically. Add a Windows regression test using a quoted name with spaces.
22 lines
273 B
C
22 lines
273 B
C
#ifdef DEF_LIBRARY_DLL
|
|
|
|
__declspec(dllexport) int def_library_value(void)
|
|
{
|
|
return 42;
|
|
}
|
|
|
|
#else
|
|
|
|
#include <stdio.h>
|
|
|
|
int def_library_value(void);
|
|
|
|
int main(void)
|
|
{
|
|
int value = def_library_value();
|
|
printf("value: %d\n", value);
|
|
return value != 42;
|
|
}
|
|
|
|
#endif
|