mirror of
https://github.com/troglobit/libite.git
synced 2026-10-26 12:04:38 +00:00
strndupa.h: #error if building with non-GCC on non-GNU systems
At the moment only GCC is supported on non-GNU systems, unfortunately. GNU systems usually have GLIBC, or another library with strndupa(). This strndupa() implementation requires GCC for the builtin alloca API. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
1495a3f858
commit
be08bcd09d
1 file changed
+2
@@ -49,6 +49,8 @@
|
|||||||
(char *)memcpy(dst_, src, len_); \
|
(char *)memcpy(dst_, src, len_); \
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
#else /* If not GCC, e.g. Clang */
|
||||||
|
+#error strndupa() may use an unsupported GNU C API, please forward any fix to maintainer, cheers!
|
||||||
#endif /* __GNUC__ */
|
#endif /* __GNUC__ */
|
||||||
#endif /* !HAVE_STRNDUPA */
|
#endif /* !HAVE_STRNDUPA */
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user