X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fstrlcpy.h;h=d4d1908e7ae10f41581541d485ab219195e9e715;hb=223b6f1ba4819e9a146e7aa451d546726d0bc714;hp=dc0560b30a246d5fdc352818f5b6544c3921fd44;hpb=c22feee634ade7f887d7e29635a8e5dc44675273;p=novacoin.git diff --git a/src/strlcpy.h b/src/strlcpy.h index dc0560b..d4d1908 100644 --- a/src/strlcpy.h +++ b/src/strlcpy.h @@ -13,7 +13,8 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ - +#ifndef BITCOIN_STRLCPY_H +#define BITCOIN_STRLCPY_H /* * Copy src to string dst of size siz. At most siz-1 characters * will be copied. Always NUL terminates (unless siz == 0). @@ -82,3 +83,4 @@ inline size_t strlcat(char *dst, const char *src, size_t siz) return(dlen + (s - src)); /* count does not include NUL */ } +#endif