mirror of
https://gitea.psi.ch/ELOG/mxml.git
synced 2026-09-09 01:23:22 +00:00
Create dummy routine to fix linker errors on empty library
This commit is contained in:
parent
cb34fe499c
commit
5f9886be00
@ -98,4 +98,9 @@ size_t strlcat(char *dst, const char *src, size_t size)
|
|||||||
|
|
||||||
/*-------------------------------------------------------------------*/
|
/*-------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#else
|
||||||
|
size_t strlcpy_dummy(void) // dummy to avoid linker warnings
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
#endif // STRLCPY_DEFINED
|
#endif // STRLCPY_DEFINED
|
||||||
|
|||||||
@ -46,6 +46,8 @@ extern "C" {
|
|||||||
#ifndef STRLCPY_DEFINED
|
#ifndef STRLCPY_DEFINED
|
||||||
size_t EXPRT strlcpy(char *dst, const char *src, size_t size);
|
size_t EXPRT strlcpy(char *dst, const char *src, size_t size);
|
||||||
size_t EXPRT strlcat(char *dst, const char *src, size_t size);
|
size_t EXPRT strlcat(char *dst, const char *src, size_t size);
|
||||||
|
#else
|
||||||
|
size_t EXPRT strlcpy_dummy(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user