diff --git a/strdupa.h b/strdupa.h index aadc607..ae845d9 100644 --- a/strdupa.h +++ b/strdupa.h @@ -37,7 +37,6 @@ #if !HAVE_STRDUPA #if defined(__GNUC__) #include /* size_t */ - #include /* memcpy(3) strlen(3) */ #define strdupa(src) (__extension__ ({ \ @@ -47,6 +46,8 @@ (char *)memcpy(dst_, src, len_); \ })) +#else /* If not GCC, e.g. Clang */ +#error strdupa() may use an unsupported GNU C API, please forward any fix to maintainer, cheers! #endif /* __GNUC__ */ #endif /* !HAVE_STRDUPA */