Skip to content

Commit

Permalink
proper export and includes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Apr 2, 2024
1 parent d1fd7bc commit af26ae1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/host/common/strl.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// https://gist.github.com/Fonger/98cc95ac39fbe1a7e4d9

#include <cstddef>
#include <cstdlib>
#include <cstring>

extern "C" {

#ifndef HAVE_STRLCAT
/*
'_cups_strlcat()' - Safely concatenate two strings.
Expand Down Expand Up @@ -82,3 +88,5 @@ strlcpy(char* dst, /* O - Destination string */
return (srclen);
}
#endif /* !HAVE_STRLCPY */

} // extern "C"

0 comments on commit af26ae1

Please sign in to comment.